Package org.antlr.runtime.tree
Class TreePatternLexer
java.lang.Object
org.antlr.runtime.tree.TreePatternLexer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
protected int
Current charstatic final int
static final int
static final int
static final int
boolean
static final int
protected int
How long is the pattern in char?protected int
Index into input stringprotected String
The tree pattern to lex like "(A B C)"static final int
Set 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()
-