C# Class Antlr4.Tool.Ast.GrammarAST

Inheritance: Antlr.Runtime.Tree.CommonTree
Show file Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
atnState Antlr4.Runtime.Atn.ATNState
g Grammar
textOverride string

Public Methods

Method Description
DeleteChild ( Antlr.Runtime.Tree.ITree t ) : bool
DupNode ( ) : Antlr.Runtime.Tree.ITree
DupTree ( ) : GrammarAST
GetAllChildrenWithType ( int type ) : IList
GetAltLabel ( ) : string
GetChildrenAsArray ( ) : Antlr4.Tool.Ast.GrammarAST[]
GetFirstChildWithType ( int type ) : Antlr.Runtime.Tree.ITree
GetFirstDescendantWithType ( Antlr types ) : Antlr.Runtime.Tree.CommonTree
GetFirstDescendantWithType ( int type ) : Antlr.Runtime.Tree.CommonTree
GetNodeWithTokenIndex ( int index ) : GrammarAST
GetNodesWithType ( Antlr4.Runtime.Misc.IntervalSet types ) : IList
GetNodesWithType ( int ttype ) : IList
GetNodesWithTypePreorderDFS ( Antlr4.Runtime.Misc.IntervalSet types ) : IList
GetNodesWithTypePreorderDFS_ ( IList nodes, Antlr4.Runtime.Misc.IntervalSet types ) : void
GetOutermostAltNode ( ) : AltAST
GrammarAST ( ) : System.Collections.Generic
GrammarAST ( Antlr.Runtime.IToken t ) : System.Collections.Generic
GrammarAST ( GrammarAST node ) : System.Collections.Generic
GrammarAST ( int type ) : System.Collections.Generic
GrammarAST ( int type, Antlr.Runtime.IToken t ) : System.Collections.Generic
GrammarAST ( int type, Antlr.Runtime.IToken t, string text ) : System.Collections.Generic
SetText ( string text ) : void
SetType ( int type ) : void
ToTokenString ( ) : string
Visit ( GrammarASTVisitor v ) : object

Method Details

DeleteChild() public method

public DeleteChild ( Antlr.Runtime.Tree.ITree t ) : bool
t Antlr.Runtime.Tree.ITree
return bool

DupNode() public method

public DupNode ( ) : Antlr.Runtime.Tree.ITree
return Antlr.Runtime.Tree.ITree

DupTree() public method

public DupTree ( ) : GrammarAST
return GrammarAST

GetAllChildrenWithType() public method

public GetAllChildrenWithType ( int type ) : IList
type int
return IList

GetAltLabel() public method

public GetAltLabel ( ) : string
return string

GetChildrenAsArray() public method

public GetChildrenAsArray ( ) : Antlr4.Tool.Ast.GrammarAST[]
return Antlr4.Tool.Ast.GrammarAST[]

GetFirstChildWithType() public method

public GetFirstChildWithType ( int type ) : Antlr.Runtime.Tree.ITree
type int
return Antlr.Runtime.Tree.ITree

GetFirstDescendantWithType() public method

public GetFirstDescendantWithType ( Antlr types ) : Antlr.Runtime.Tree.CommonTree
types Antlr
return Antlr.Runtime.Tree.CommonTree

GetFirstDescendantWithType() public method

public GetFirstDescendantWithType ( int type ) : Antlr.Runtime.Tree.CommonTree
type int
return Antlr.Runtime.Tree.CommonTree

GetNodeWithTokenIndex() public method

public GetNodeWithTokenIndex ( int index ) : GrammarAST
index int
return GrammarAST

GetNodesWithType() public method

public GetNodesWithType ( Antlr4.Runtime.Misc.IntervalSet types ) : IList
types Antlr4.Runtime.Misc.IntervalSet
return IList

GetNodesWithType() public method

public GetNodesWithType ( int ttype ) : IList
ttype int
return IList

GetNodesWithTypePreorderDFS() public method

public GetNodesWithTypePreorderDFS ( Antlr4.Runtime.Misc.IntervalSet types ) : IList
types Antlr4.Runtime.Misc.IntervalSet
return IList

GetNodesWithTypePreorderDFS_() public method

public GetNodesWithTypePreorderDFS_ ( IList nodes, Antlr4.Runtime.Misc.IntervalSet types ) : void
nodes IList
types Antlr4.Runtime.Misc.IntervalSet
return void

GetOutermostAltNode() public method

public GetOutermostAltNode ( ) : AltAST
return AltAST

GrammarAST() public method

public GrammarAST ( ) : System.Collections.Generic
return System.Collections.Generic

GrammarAST() public method

public GrammarAST ( Antlr.Runtime.IToken t ) : System.Collections.Generic
t Antlr.Runtime.IToken
return System.Collections.Generic

GrammarAST() public method

public GrammarAST ( GrammarAST node ) : System.Collections.Generic
node GrammarAST
return System.Collections.Generic

GrammarAST() public method

public GrammarAST ( int type ) : System.Collections.Generic
type int
return System.Collections.Generic

GrammarAST() public method

public GrammarAST ( int type, Antlr.Runtime.IToken t ) : System.Collections.Generic
type int
t Antlr.Runtime.IToken
return System.Collections.Generic

GrammarAST() public method

public GrammarAST ( int type, Antlr.Runtime.IToken t, string text ) : System.Collections.Generic
type int
t Antlr.Runtime.IToken
text string
return System.Collections.Generic

SetText() public method

public SetText ( string text ) : void
text string
return void

SetType() public method

public SetType ( int type ) : void
type int
return void

ToTokenString() public method

public ToTokenString ( ) : string
return string

Visit() public method

public Visit ( GrammarASTVisitor v ) : object
v GrammarASTVisitor
return object

Property Details

atnState public property

public ATNState,Antlr4.Runtime.Atn atnState
return Antlr4.Runtime.Atn.ATNState

g public property

public Grammar g
return Grammar

textOverride public property

public string textOverride
return string