Public Member Functions | |
ParseTreeRule (String ruleName) | |
ParseTreeRule (String ruleName, int altNumber) | |
String | getRuleName () |
String | toString () |
Static Public Attributes | |
static final int | INVALID_ALT = -1 |
Protected Member Functions | |
int | getLeftmostDerivation (StringBuffer buf, int step) |
Protected Attributes | |
String | ruleName |
int | altNumber |
antlr.ParseTreeRule.ParseTreeRule | ( | String | ruleName | ) |
References antlr.ParseTreeRule.INVALID_ALT.
antlr.ParseTreeRule.ParseTreeRule | ( | String | ruleName, | |
int | altNumber | |||
) |
int antlr.ParseTreeRule.getLeftmostDerivation | ( | StringBuffer | buf, | |
int | step | |||
) | [protected, virtual] |
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.
Implements antlr.ParseTree.
References antlr.BaseAST.getFirstChild(), antlr.collections.AST.getNextSibling(), antlr.collections.AST.toString(), and antlr.ParseTreeRule.toString().
String antlr.ParseTreeRule.getRuleName | ( | ) |
References antlr.ParseTreeRule.ruleName.
String antlr.ParseTreeRule.toString | ( | ) |
Reimplemented from antlr.BaseAST.
References antlr.ParseTreeRule.altNumber, antlr.ParseTreeRule.INVALID_ALT, and antlr.ParseTreeRule.ruleName.
Referenced by antlr.ParseTreeRule.getLeftmostDerivation().
int antlr.ParseTreeRule.altNumber [protected] |
Referenced by antlr.ParseTreeRule.toString().
final int antlr.ParseTreeRule.INVALID_ALT = -1 [static] |
Referenced by antlr.ParseTreeRule.ParseTreeRule(), and antlr.ParseTreeRule.toString().
String antlr.ParseTreeRule.ruleName [protected] |
Referenced by antlr.ParseTreeRule.getRuleName(), and antlr.ParseTreeRule.toString().