public class ParseTreeRule extends ParseTree
| Modifier and Type | Field and Description |
|---|---|
protected int |
altNumber |
static int |
INVALID_ALT |
protected String |
ruleName |
| Constructor and Description |
|---|
ParseTreeRule(String ruleName) |
ParseTreeRule(String ruleName,
int altNumber) |
| Modifier and Type | Method and Description |
|---|---|
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() |
getLeftmostDerivation, getLeftmostDerivationStep, initialize, initialize, initializeaddChild, 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, xmlSerializeRootOpenpublic static final int INVALID_ALT
protected String ruleName
protected int altNumber
public ParseTreeRule(String ruleName)
public ParseTreeRule(String ruleName, int altNumber)
public String getRuleName()
protected int getLeftmostDerivation(StringBuffer buf, int step)
getLeftmostDerivation in class ParseTreeCopyright © 2017–2019 Eclipse Foundation. All rights reserved.