Package antlr
Class ParseTree
java.lang.Object
antlr.BaseAST
antlr.ParseTree
- All Implemented Interfaces:
AST,Serializable
- Direct Known Subclasses:
ParseTreeRule,ParseTreeToken
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLeftmostDerivation(int maxSteps) protected abstract intgetLeftmostDerivation(StringBuffer buf, int step) Get derivation and return how many you did (less than requested for subtree roots.getLeftmostDerivationStep(int step) Walk parse tree and return requested number of derivation steps.voidinitialize(int i, String s) voidinitialize(AST ast) voidinitialize(Token token) 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, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
-
Constructor Details
-
ParseTree
public ParseTree()
-
-
Method Details
-
getLeftmostDerivationStep
Walk parse tree and return requested number of derivation steps. If steps invalid input: '<'= 0, return node text. If steps == 1, return derivation string at step. -
getLeftmostDerivation
-
getLeftmostDerivation
Get derivation and return how many you did (less than requested for subtree roots. -
initialize
- Specified by:
initializein interfaceAST- Specified by:
initializein classBaseAST
-
initialize
- Specified by:
initializein interfaceAST- Specified by:
initializein classBaseAST
-
initialize
- Specified by:
initializein interfaceAST- Specified by:
initializein classBaseAST
-