C# Class Antlr4.Tool.Rule

Inheritance: AttributeResolver
Afficher le fichier Open project: sharwell/antlr4cs Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode Description
Rule ( ) : System.Collections.Generic

Method Details

DefineActionInAlt() public méthode

public DefineActionInAlt ( int currentAlt, ActionAST actionAST ) : void
currentAlt int
actionAST Antlr4.Tool.Ast.ActionAST
Résultat void

DefineLexerAction() public méthode

public DefineLexerAction ( ActionAST actionAST ) : void
actionAST Antlr4.Tool.Ast.ActionAST
Résultat void

DefinePredicateInAlt() public méthode

public DefinePredicateInAlt ( int currentAlt, PredAST predAST ) : void
currentAlt int
predAST Antlr4.Tool.Ast.PredAST
Résultat void

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetAltLabels() public méthode

public GetAltLabels ( ) : IDictionary>>
Résultat IDictionary>>

GetAnyLabelDef() public méthode

public GetAnyLabelDef ( string x ) : LabelElementPair
x string
Résultat LabelElementPair

GetBaseContext() public méthode

public GetBaseContext ( ) : string
Résultat string

GetElementLabelDefs() public méthode

public GetElementLabelDefs ( ) : LabelElementPair>.Runtime.Misc.MultiMap
Résultat LabelElementPair>.Runtime.Misc.MultiMap

GetElementLabelNames() public méthode

public GetElementLabelNames ( ) : ISet
Résultat ISet

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetOriginalNumberOfAlts() public méthode

public GetOriginalNumberOfAlts ( ) : int
Résultat int

GetPredefinedScope() public méthode

public GetPredefinedScope ( LabelType ltype ) : AttributeDict
ltype LabelType
Résultat AttributeDict

GetTokenRefs() public méthode

public GetTokenRefs ( ) : ISet
Résultat ISet

GetUnlabeledAltASTs() public méthode

public GetUnlabeledAltASTs ( ) : IList
Résultat IList

HasAltSpecificContexts() public méthode

public HasAltSpecificContexts ( ) : bool
Résultat bool

IsFragment() public méthode

public IsFragment ( ) : bool
Résultat bool

ResolveRetvalOrProperty() public méthode

public ResolveRetvalOrProperty ( string y ) : Attribute
y string
Résultat Attribute

ResolveToAttribute() public méthode

public ResolveToAttribute ( string x, ActionAST node ) : Attribute
x string
node Antlr4.Tool.Ast.ActionAST
Résultat Attribute

ResolveToAttribute() public méthode

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

ResolvesToAttributeDict() public méthode

public ResolvesToAttributeDict ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
Résultat bool

ResolvesToLabel() public méthode

public ResolvesToLabel ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
Résultat bool

ResolvesToListLabel() public méthode

public ResolvesToListLabel ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
Résultat bool

ResolvesToToken() public méthode

public ResolvesToToken ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
Résultat bool

Rule() public méthode

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

SetBaseContext() public méthode

public SetBaseContext ( string baseContext ) : void
baseContext string
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

resolveToRule() public méthode

public resolveToRule ( string x ) : Rule
x string
Résultat Rule

Property Details

actionIndex public_oe property

public int actionIndex
Résultat int

actions public_oe property

public IList actions
Résultat IList

alt public_oe property

public Alternative[],Antlr4.Tool alt
Résultat Antlr4.Tool.Alternative[]

args public_oe property

public AttributeDict,Antlr4.Tool args
Résultat AttributeDict

ast public_oe property

public RuleAST,Antlr4.Tool.Ast ast
Résultat Antlr4.Tool.Ast.RuleAST

exceptions public_oe property

public IList exceptions
Résultat IList

finallyAction public_oe property

public ActionAST,Antlr4.Tool.Ast finallyAction
Résultat Antlr4.Tool.Ast.ActionAST

g public_oe property

public Grammar,Antlr4.Tool g
Résultat Grammar

index public_oe property

public int index
Résultat int

isStartRule public_oe property

public bool isStartRule
Résultat bool

locals public_oe property

public AttributeDict,Antlr4.Tool locals
Résultat AttributeDict

mode public_oe property

public string mode
Résultat string

modifiers public_oe property

public IList modifiers
Résultat IList

name public_oe property

public string name
Résultat string

namedActions public_oe property

public IDictionary namedActions
Résultat ActionAST>.IDictionary

numberOfAlts public_oe property

public int numberOfAlts
Résultat int

predefinedRulePropertiesDict public_oe static_oe property

public static AttributeDict,Antlr4.Tool predefinedRulePropertiesDict
Résultat AttributeDict

retvals public_oe property

public AttributeDict,Antlr4.Tool retvals
Résultat AttributeDict

validLexerCommands public_oe static_oe property

public static ISet validLexerCommands
Résultat ISet