Class LineTokenizer

java.lang.Object
org.eclipse.angus.activation.LineTokenizer

class LineTokenizer extends Object
  • Field Details

    • currentPosition

      private int currentPosition
    • maxPosition

      private int maxPosition
    • str

      private String str
    • stack

      private Vector<String> stack
    • singles

      private static final String singles
      See Also:
  • Constructor Details

    • LineTokenizer

      public LineTokenizer(String str)
      Constructs a tokenizer for the specified string.

      Parameters:
      str - a string to be parsed.
  • Method Details

    • skipWhiteSpace

      private void skipWhiteSpace()
      Skips white space.
    • hasMoreTokens

      public boolean hasMoreTokens()
      Tests if there are more tokens available from this tokenizer's string.
      Returns:
      true if there are more tokens available from this tokenizer's string; false otherwise.
    • nextToken

      public String nextToken()
      Returns the next token from this tokenizer.
      Returns:
      the next token from this tokenizer.
      Throws:
      NoSuchElementException - if there are no more tokens in this tokenizer's string.
    • pushToken

      public void pushToken(String token)