Public Member Functions | Protected Member Functions

antlr.ParseTree Class Reference

Inheritance diagram for antlr.ParseTree:
antlr.BaseAST antlr.collections.AST antlr.ParseTreeRule antlr.ParseTreeToken

List of all members.

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)

Member Function Documentation

String antlr.ParseTree.getLeftmostDerivation ( int  maxSteps  ) 
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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties