Package org.eclipse.angus.activation
Class LineTokenizer
java.lang.Object
org.eclipse.angus.activation.LineTokenizer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests if there are more tokens available from this tokenizer's string.Returns the next token from this tokenizer.void
private void
Skips white space.
-
Field Details
-
currentPosition
private int currentPosition -
maxPosition
private int maxPosition -
str
-
stack
-
singles
- See Also:
-
-
Constructor Details
-
LineTokenizer
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
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
-