public abstract class ParseTree extends BaseAST
Constructor and Description |
---|
ParseTree() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLeftmostDerivation(int maxSteps) |
protected abstract int |
getLeftmostDerivation(java.lang.StringBuffer buf,
int step)
Get derivation and return how many you did (less than requested for
subtree roots.
|
java.lang.String |
getLeftmostDerivationStep(int step)
Walk parse tree and return requested number of derivation steps.
|
void |
initialize(AST ast) |
void |
initialize(int i,
java.lang.String s) |
void |
initialize(Token token) |
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getText, getTokenNames, getType, removeChildren, setFirstChild, setNextSibling, setText, setType, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
public java.lang.String getLeftmostDerivationStep(int step)
public java.lang.String getLeftmostDerivation(int maxSteps)
protected abstract int getLeftmostDerivation(java.lang.StringBuffer buf, int step)
public void initialize(int i, java.lang.String s)
initialize
in interface AST
initialize
in class BaseAST
public void initialize(AST ast)
initialize
in interface AST
initialize
in class BaseAST
public void initialize(Token token)
initialize
in interface AST
initialize
in class BaseAST