antlr
Class ParseTreeRule

java.lang.Object
  extended by antlr.BaseAST
      extended by antlr.ParseTree
          extended by antlr.ParseTreeRule
All Implemented Interfaces:
AST, java.io.Serializable

public class ParseTreeRule
extends ParseTree

See Also:
Serialized Form

Field Summary
protected  int altNumber
           
static int INVALID_ALT
           
protected  java.lang.String ruleName
           
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
ParseTreeRule(java.lang.String ruleName)
           
ParseTreeRule(java.lang.String ruleName, int altNumber)
           
 
Method Summary
protected  int getLeftmostDerivation(java.lang.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.
 java.lang.String getRuleName()
           
 java.lang.String toString()
           
 
Methods inherited from class antlr.ParseTree
getLeftmostDerivation, getLeftmostDerivationStep, initialize, initialize, initialize
 
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, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALID_ALT

public static final int INVALID_ALT
See Also:
Constant Field Values

ruleName

protected java.lang.String ruleName

altNumber

protected int altNumber
Constructor Detail

ParseTreeRule

public ParseTreeRule(java.lang.String ruleName)

ParseTreeRule

public ParseTreeRule(java.lang.String ruleName,
                     int altNumber)
Method Detail

getRuleName

public java.lang.String getRuleName()

getLeftmostDerivation

protected int getLeftmostDerivation(java.lang.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.

Specified by:
getLeftmostDerivation in class ParseTree

toString

public java.lang.String toString()
Specified by:
toString in interface AST
Overrides:
toString in class BaseAST