Package antlr
Class ParseTreeRule
java.lang.Object
antlr.BaseAST
antlr.ParseTree
antlr.ParseTreeRule
- All Implemented Interfaces:
AST
,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParseTreeRule
(String ruleName) ParseTreeRule
(String ruleName, int altNumber) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
getLeftmostDerivation
(StringBuffer buf, int step) Do a step-first walk, building up a buffer of tokens until you've reached a particular step and print out any rule subroots insteads of descending.toString()
Methods inherited from class antlr.ParseTree
getLeftmostDerivation, getLeftmostDerivationStep, initialize, initialize, initialize
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getText, getTokenNames, getType, removeChildren, setFirstChild, setNextSibling, setText, setType, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
-
Field Details
-
INVALID_ALT
public static final int INVALID_ALT- See Also:
-
ruleName
-
altNumber
protected int altNumber
-
-
Constructor Details
-
ParseTreeRule
-
ParseTreeRule
-
-
Method Details
-
getRuleName
-
getLeftmostDerivation
Do a step-first walk, building up a buffer of tokens until you've reached a particular step and print out any rule subroots insteads of descending.- Specified by:
getLeftmostDerivation
in classParseTree
-
toString
-