C# Class Antlr4.Tool.Rule

Inheritance: AttributeResolver
Datei anzeigen Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
actionIndex int
actions IList
alt Antlr4.Tool.Alternative[]
args AttributeDict
ast Antlr4.Tool.Ast.RuleAST
exceptions IList
finallyAction Antlr4.Tool.Ast.ActionAST
g Grammar
index int
isStartRule bool
locals AttributeDict
mode string
modifiers IList
name string
namedActions ActionAST>.IDictionary
numberOfAlts int
predefinedRulePropertiesDict AttributeDict
retvals AttributeDict
validLexerCommands ISet

Public Methods

Method Description
DefineActionInAlt ( int currentAlt, ActionAST actionAST ) : void
DefineLexerAction ( ActionAST actionAST ) : void
DefinePredicateInAlt ( int currentAlt, PredAST predAST ) : void
Equals ( object obj ) : bool
GetAltLabels ( ) : IDictionary>>
GetAnyLabelDef ( string x ) : LabelElementPair
GetBaseContext ( ) : string
GetElementLabelDefs ( ) : LabelElementPair>.Runtime.Misc.MultiMap
GetElementLabelNames ( ) : ISet
GetHashCode ( ) : int
GetOriginalNumberOfAlts ( ) : int
GetPredefinedScope ( LabelType ltype ) : AttributeDict
GetTokenRefs ( ) : ISet
GetUnlabeledAltASTs ( ) : IList
HasAltSpecificContexts ( ) : bool
IsFragment ( ) : bool
ResolveRetvalOrProperty ( string y ) : Attribute
ResolveToAttribute ( string x, ActionAST node ) : Attribute
ResolveToAttribute ( string x, string y, ActionAST node ) : Attribute
ResolvesToAttributeDict ( string x, ActionAST node ) : bool
ResolvesToLabel ( string x, ActionAST node ) : bool
ResolvesToListLabel ( string x, ActionAST node ) : bool
ResolvesToToken ( string x, ActionAST node ) : bool
Rule ( Grammar g, string name, RuleAST ast, int numberOfAlts ) : System.Collections.Generic
SetBaseContext ( string baseContext ) : void
ToString ( ) : string
resolveToRule ( string x ) : Rule

Private Methods

Method Description
Rule ( ) : System.Collections.Generic

Method Details

DefineActionInAlt() public method

public DefineActionInAlt ( int currentAlt, ActionAST actionAST ) : void
currentAlt int
actionAST Antlr4.Tool.Ast.ActionAST
return void

DefineLexerAction() public method

public DefineLexerAction ( ActionAST actionAST ) : void
actionAST Antlr4.Tool.Ast.ActionAST
return void

DefinePredicateInAlt() public method

public DefinePredicateInAlt ( int currentAlt, PredAST predAST ) : void
currentAlt int
predAST Antlr4.Tool.Ast.PredAST
return void

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetAltLabels() public method

public GetAltLabels ( ) : IDictionary>>
return IDictionary>>

GetAnyLabelDef() public method

public GetAnyLabelDef ( string x ) : LabelElementPair
x string
return LabelElementPair

GetBaseContext() public method

public GetBaseContext ( ) : string
return string

GetElementLabelDefs() public method

public GetElementLabelDefs ( ) : LabelElementPair>.Runtime.Misc.MultiMap
return LabelElementPair>.Runtime.Misc.MultiMap

GetElementLabelNames() public method

public GetElementLabelNames ( ) : ISet
return ISet

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetOriginalNumberOfAlts() public method

public GetOriginalNumberOfAlts ( ) : int
return int

GetPredefinedScope() public method

public GetPredefinedScope ( LabelType ltype ) : AttributeDict
ltype LabelType
return AttributeDict

GetTokenRefs() public method

public GetTokenRefs ( ) : ISet
return ISet

GetUnlabeledAltASTs() public method

public GetUnlabeledAltASTs ( ) : IList
return IList

HasAltSpecificContexts() public method

public HasAltSpecificContexts ( ) : bool
return bool

IsFragment() public method

public IsFragment ( ) : bool
return bool

ResolveRetvalOrProperty() public method

public ResolveRetvalOrProperty ( string y ) : Attribute
y string
return Attribute

ResolveToAttribute() public method

public ResolveToAttribute ( string x, ActionAST node ) : Attribute
x string
node Antlr4.Tool.Ast.ActionAST
return Attribute

ResolveToAttribute() public method

public ResolveToAttribute ( string x, string y, ActionAST node ) : Attribute
x string
y string
node Antlr4.Tool.Ast.ActionAST
return Attribute

ResolvesToAttributeDict() public method

public ResolvesToAttributeDict ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
return bool

ResolvesToLabel() public method

public ResolvesToLabel ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
return bool

ResolvesToListLabel() public method

public ResolvesToListLabel ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
return bool

ResolvesToToken() public method

public ResolvesToToken ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
return bool

Rule() public method

public Rule ( Grammar g, string name, RuleAST ast, int numberOfAlts ) : System.Collections.Generic
g Grammar
name string
ast Antlr4.Tool.Ast.RuleAST
numberOfAlts int
return System.Collections.Generic

SetBaseContext() public method

public SetBaseContext ( string baseContext ) : void
baseContext string
return void

ToString() public method

public ToString ( ) : string
return string

resolveToRule() public method

public resolveToRule ( string x ) : Rule
x string
return Rule

Property Details

actionIndex public_oe property

public int actionIndex
return int

actions public_oe property

public IList actions
return IList

alt public_oe property

public Alternative[],Antlr4.Tool alt
return Antlr4.Tool.Alternative[]

args public_oe property

public AttributeDict,Antlr4.Tool args
return AttributeDict

ast public_oe property

public RuleAST,Antlr4.Tool.Ast ast
return Antlr4.Tool.Ast.RuleAST

exceptions public_oe property

public IList exceptions
return IList

finallyAction public_oe property

public ActionAST,Antlr4.Tool.Ast finallyAction
return Antlr4.Tool.Ast.ActionAST

g public_oe property

public Grammar,Antlr4.Tool g
return Grammar

index public_oe property

public int index
return int

isStartRule public_oe property

public bool isStartRule
return bool

locals public_oe property

public AttributeDict,Antlr4.Tool locals
return AttributeDict

mode public_oe property

public string mode
return string

modifiers public_oe property

public IList modifiers
return IList

name public_oe property

public string name
return string

namedActions public_oe property

public IDictionary namedActions
return ActionAST>.IDictionary

numberOfAlts public_oe property

public int numberOfAlts
return int

predefinedRulePropertiesDict public_oe static_oe property

public static AttributeDict,Antlr4.Tool predefinedRulePropertiesDict
return AttributeDict

retvals public_oe property

public AttributeDict,Antlr4.Tool retvals
return AttributeDict

validLexerCommands public_oe static_oe property

public static ISet validLexerCommands
return ISet