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 int
ARG
static int
BEGIN
protected int
c
Current charstatic int
COLON
static int
DOT
static int
END
static int
EOF
boolean
error
static int
ID
protected int
n
How long is the pattern in char?protected int
p
Index into input stringprotected String
pattern
The tree pattern to lex like "(A B C)"static int
PERCENT
StringBuffer
sval
Set 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)
-
-