Package org.antlr.runtime.tree
Class TreePatternLexer
- java.lang.Object
-
- org.antlr.runtime.tree.TreePatternLexer
-
public class TreePatternLexer extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intARGstatic intBEGINprotected intcCurrent charstatic intCOLONstatic intDOTstatic intENDstatic intEOFbooleanerrorstatic intIDprotected intnHow long is the pattern in char?protected intpIndex into input stringprotected StringpatternThe tree pattern to lex like "(A B C)"static intPERCENTStringBuffersvalSet when token type is ID or ARG (name mimics Java's StreamTokenizer)
-
Constructor Summary
Constructors Constructor Description TreePatternLexer(String pattern)
-
-
-
Field Detail
-
EOF
public static final int EOF
- See Also:
- Constant Field Values
-
BEGIN
public static final int BEGIN
- See Also:
- Constant Field Values
-
END
public static final int END
- See Also:
- Constant Field Values
-
ID
public static final int ID
- See Also:
- Constant Field Values
-
ARG
public static final int ARG
- See Also:
- Constant Field Values
-
PERCENT
public static final int PERCENT
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
DOT
public static final int DOT
- See Also:
- Constant Field Values
-
pattern
protected String pattern
The tree pattern to lex like "(A B C)"
-
p
protected int p
Index into input string
-
c
protected int c
Current char
-
n
protected int n
How long is the pattern in char?
-
sval
public StringBuffer sval
Set when token type is ID or ARG (name mimics Java's StreamTokenizer)
-
error
public boolean error
-
-
Constructor Detail
-
TreePatternLexer
public TreePatternLexer(String pattern)
-
-