antlr
Class ParseTreeRule
- AST, Serializable
public class ParseTreeRule
protected 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.
|
String | getRuleName()
|
String | toString()
|
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getText, getTokenNames, getType, initialize, initialize, initialize, removeChildren, setFirstChild, setNextSibling, setText, setType, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
INVALID_ALT
public static final int INVALID_ALT
altNumber
protected int altNumber
ruleName
protected String ruleName
ParseTreeRule
public ParseTreeRule(String ruleName)
ParseTreeRule
public ParseTreeRule(String ruleName,
int altNumber)
getLeftmostDerivation
protected 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.
- getLeftmostDerivation in interface ParseTree
getRuleName
public String getRuleName()