Package org.eclipse.angus.activation
Class LineTokenizer
- java.lang.Object
-
- org.eclipse.angus.activation.LineTokenizer
-
class LineTokenizer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private intcurrentPositionprivate intmaxPositionprivate static java.lang.Stringsinglesprivate java.util.Vector<java.lang.String>stackprivate java.lang.Stringstr
-
Constructor Summary
Constructors Constructor Description LineTokenizer(java.lang.String str)Constructs a tokenizer for the specified string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasMoreTokens()Tests if there are more tokens available from this tokenizer's string.java.lang.StringnextToken()Returns the next token from this tokenizer.voidpushToken(java.lang.String token)private voidskipWhiteSpace()Skips white space.
-
-
-
Field Detail
-
currentPosition
private int currentPosition
-
maxPosition
private int maxPosition
-
str
private java.lang.String str
-
stack
private java.util.Vector<java.lang.String> stack
-
singles
private static final java.lang.String singles
- See Also:
- Constant Field Values
-
-
Method Detail
-
skipWhiteSpace
private void skipWhiteSpace()
Skips white space.
-
hasMoreTokens
public boolean hasMoreTokens()
Tests if there are more tokens available from this tokenizer's string.- Returns:
trueif there are more tokens available from this tokenizer's string;falseotherwise.
-
nextToken
public java.lang.String nextToken()
Returns the next token from this tokenizer.- Returns:
- the next token from this tokenizer.
- Throws:
java.util.NoSuchElementException- if there are no more tokens in this tokenizer's string.
-
pushToken
public void pushToken(java.lang.String token)
-
-