Package org.apache.felix.gogo.runtime
Class Expression.Tokenizer
java.lang.Object
org.apache.felix.gogo.runtime.Expression.Tokenizer
- Enclosing class:
- Expression
Expression tokenizer that allows to iterate over a
String
expression token by token. Blank characters will be skipped.-
Field Details
-
pos
private int posActual position in expression string. -
input
The original input expression. -
previousToken
The previous token ornullif none.
-
-
Constructor Details
-
Tokenizer
Creates a new tokenizer for an expression.- Parameters:
input- The expression string.
-
-
Method Details
-
hasNext
public boolean hasNext() -
peekNextChar
private char peekNextChar()Peek at the next character, without advancing the iterator.- Returns:
- The next character or character 0, if at end of string.
-
next
-
remove
public void remove() -
getPos
public int getPos()Get the actual character position in the string.- Returns:
- The actual character position.
-