Public Member Functions | |
String | getLeftmostDerivationStep (int step) |
String | getLeftmostDerivation (int maxSteps) |
void | initialize (int i, String s) |
void | initialize (AST ast) |
void | initialize (Token token) |
Protected Member Functions | |
abstract int | getLeftmostDerivation (StringBuffer buf, int step) |
String antlr.ParseTree.getLeftmostDerivation | ( | int | maxSteps | ) |
References antlr.ParseTree.getLeftmostDerivationStep(), and antlr.BaseAST.toString().
Referenced by antlr.ParseTree.getLeftmostDerivationStep().
abstract int antlr.ParseTree.getLeftmostDerivation | ( | StringBuffer | buf, | |
int | step | |||
) | [protected, pure virtual] |
Get derivation and return how many you did (less than requested for subtree roots.
Implemented in antlr.ParseTreeRule, and antlr.ParseTreeToken.
String antlr.ParseTree.getLeftmostDerivationStep | ( | int | step | ) |
Walk parse tree and return requested number of derivation steps. If steps <= 0, return node text. If steps == 1, return derivation string at step.
References antlr.ParseTree.getLeftmostDerivation(), and antlr.BaseAST.toString().
Referenced by antlr.ParseTree.getLeftmostDerivation().
void antlr.ParseTree.initialize | ( | int | i, | |
String | s | |||
) | [virtual] |
Implements antlr.BaseAST.
void antlr.ParseTree.initialize | ( | Token | token | ) | [virtual] |
Implements antlr.BaseAST.
void antlr.ParseTree.initialize | ( | AST | ast | ) | [virtual] |
Implements antlr.BaseAST.