antlr

Class ParseTreeToken

Implemented Interfaces:
AST, Serializable

public class ParseTreeToken
extends ParseTree

Field Summary

protected Token
token

Fields inherited from class antlr.BaseAST

down, right

Constructor Summary

ParseTreeToken(Token token)

Method Summary

protected int
getLeftmostDerivation(StringBuffer buf, int step)
Get derivation and return how many you did (less than requested for subtree roots.
String
toString()

Methods inherited from class antlr.ParseTree

getLeftmostDerivation, 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, initialize, initialize, initialize, removeChildren, setFirstChild, setNextSibling, setText, setType, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen

Field Details

token

protected Token token

Constructor Details

ParseTreeToken

public ParseTreeToken(Token token)

Method Details

getLeftmostDerivation

protected int getLeftmostDerivation(StringBuffer buf,
                                    int step)
Get derivation and return how many you did (less than requested for subtree roots.
Overrides:
getLeftmostDerivation in interface ParseTree

toString

public String toString()
Specified by:
toString in interface AST
Overrides:
toString in interface BaseAST