C# Class Spring.Expressions.Parser.antlr.ParseTree

Inheritance: BaseAST
Show file Open project: spring-projects/spring-net

Public Methods

Method Description
getLeftmostDerivation ( int maxSteps ) : string
getLeftmostDerivationStep ( int step ) : string

Walk parse tree and return requested number of derivation steps. If steps less-than 0, return node text. If steps equals 1, return derivation string at step.

initialize ( IToken token ) : void
initialize ( antlr.collections.AST ast ) : void
initialize ( int i, string s ) : void

Protected Methods

Method Description
getLeftmostDerivation ( System.Text.StringBuilder buf, int step ) : int

Get derivation and return how many you did (less than requested for subtree roots.

Method Details

getLeftmostDerivation() protected abstract method

Get derivation and return how many you did (less than requested for subtree roots.
protected abstract getLeftmostDerivation ( System.Text.StringBuilder buf, int step ) : int
buf System.Text.StringBuilder string buffer
step int derivation steps
return int

getLeftmostDerivation() public method

public getLeftmostDerivation ( int maxSteps ) : string
maxSteps int
return string

getLeftmostDerivationStep() public method

Walk parse tree and return requested number of derivation steps. If steps less-than 0, return node text. If steps equals 1, return derivation string at step.
public getLeftmostDerivationStep ( int step ) : string
step int derivation steps
return string

initialize() public method

public initialize ( IToken token ) : void
token IToken
return void

initialize() public method

public initialize ( antlr.collections.AST ast ) : void
ast antlr.collections.AST
return void

initialize() public method

public initialize ( int i, string s ) : void
i int
s string
return void