Class TreePatternLexer
java.lang.Object
org.antlr.runtime.tree.TreePatternLexer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprotected intCurrent charstatic final intstatic final intstatic final intstatic final intbooleanstatic final intprotected intHow long is the pattern in char?protected intIndex into input stringprotected StringThe tree pattern to lex like "(A B C)"static final intSet when token type is ID or ARG (name mimics Java's StreamTokenizer) -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EOF
public static final int EOF- See Also:
-
BEGIN
public static final int BEGIN- See Also:
-
END
public static final int END- See Also:
-
ID
public static final int ID- See Also:
-
ARG
public static final int ARG- See Also:
-
PERCENT
public static final int PERCENT- See Also:
-
COLON
public static final int COLON- See Also:
-
DOT
public static final int DOT- See Also:
-
pattern
The tree pattern to lex like "(A B C)" -
p
protected int pIndex into input string -
c
protected int cCurrent char -
n
protected int nHow long is the pattern in char? -
sval
Set when token type is ID or ARG (name mimics Java's StreamTokenizer) -
error
public boolean error
-
-
Constructor Details
-
TreePatternLexer
-
-
Method Details
-
nextToken
public int nextToken() -
consume
protected void consume()
-