C# Класс Antlr4.Tool.Rule

Наследование: AttributeResolver
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Rule ( ) : System.Collections.Generic

Описание методов

DefineActionInAlt() публичный Метод

public DefineActionInAlt ( int currentAlt, ActionAST actionAST ) : void
currentAlt int
actionAST Antlr4.Tool.Ast.ActionAST
Результат void

DefineLexerAction() публичный Метод

public DefineLexerAction ( ActionAST actionAST ) : void
actionAST Antlr4.Tool.Ast.ActionAST
Результат void

DefinePredicateInAlt() публичный Метод

public DefinePredicateInAlt ( int currentAlt, PredAST predAST ) : void
currentAlt int
predAST Antlr4.Tool.Ast.PredAST
Результат void

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetAltLabels() публичный Метод

public GetAltLabels ( ) : IDictionary>>
Результат IDictionary>>

GetAnyLabelDef() публичный Метод

public GetAnyLabelDef ( string x ) : LabelElementPair
x string
Результат LabelElementPair

GetBaseContext() публичный Метод

public GetBaseContext ( ) : string
Результат string

GetElementLabelDefs() публичный Метод

public GetElementLabelDefs ( ) : LabelElementPair>.Runtime.Misc.MultiMap
Результат LabelElementPair>.Runtime.Misc.MultiMap

GetElementLabelNames() публичный Метод

public GetElementLabelNames ( ) : ISet
Результат ISet

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetOriginalNumberOfAlts() публичный Метод

public GetOriginalNumberOfAlts ( ) : int
Результат int

GetPredefinedScope() публичный Метод

public GetPredefinedScope ( LabelType ltype ) : AttributeDict
ltype LabelType
Результат AttributeDict

GetTokenRefs() публичный Метод

public GetTokenRefs ( ) : ISet
Результат ISet

GetUnlabeledAltASTs() публичный Метод

public GetUnlabeledAltASTs ( ) : IList
Результат IList

HasAltSpecificContexts() публичный Метод

public HasAltSpecificContexts ( ) : bool
Результат bool

IsFragment() публичный Метод

public IsFragment ( ) : bool
Результат bool

ResolveRetvalOrProperty() публичный Метод

public ResolveRetvalOrProperty ( string y ) : Attribute
y string
Результат Attribute

ResolveToAttribute() публичный Метод

public ResolveToAttribute ( string x, ActionAST node ) : Attribute
x string
node Antlr4.Tool.Ast.ActionAST
Результат Attribute

ResolveToAttribute() публичный Метод

public ResolveToAttribute ( string x, string y, ActionAST node ) : Attribute
x string
y string
node Antlr4.Tool.Ast.ActionAST
Результат Attribute

ResolvesToAttributeDict() публичный Метод

public ResolvesToAttributeDict ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
Результат bool

ResolvesToLabel() публичный Метод

public ResolvesToLabel ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
Результат bool

ResolvesToListLabel() публичный Метод

public ResolvesToListLabel ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
Результат bool

ResolvesToToken() публичный Метод

public ResolvesToToken ( string x, ActionAST node ) : bool
x string
node Antlr4.Tool.Ast.ActionAST
Результат bool

Rule() публичный Метод

public Rule ( Grammar g, string name, RuleAST ast, int numberOfAlts ) : System.Collections.Generic
g Grammar
name string
ast Antlr4.Tool.Ast.RuleAST
numberOfAlts int
Результат System.Collections.Generic

SetBaseContext() публичный Метод

public SetBaseContext ( string baseContext ) : void
baseContext string
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

resolveToRule() публичный Метод

public resolveToRule ( string x ) : Rule
x string
Результат Rule

Описание свойств

actionIndex публичное свойство

public int actionIndex
Результат int

actions публичное свойство

public IList actions
Результат IList

alt публичное свойство

public Alternative[],Antlr4.Tool alt
Результат Antlr4.Tool.Alternative[]

args публичное свойство

public AttributeDict,Antlr4.Tool args
Результат AttributeDict

ast публичное свойство

public RuleAST,Antlr4.Tool.Ast ast
Результат Antlr4.Tool.Ast.RuleAST

exceptions публичное свойство

public IList exceptions
Результат IList

finallyAction публичное свойство

public ActionAST,Antlr4.Tool.Ast finallyAction
Результат Antlr4.Tool.Ast.ActionAST

g публичное свойство

public Grammar,Antlr4.Tool g
Результат Grammar

index публичное свойство

public int index
Результат int

isStartRule публичное свойство

public bool isStartRule
Результат bool

locals публичное свойство

public AttributeDict,Antlr4.Tool locals
Результат AttributeDict

mode публичное свойство

public string mode
Результат string

modifiers публичное свойство

public IList modifiers
Результат IList

name публичное свойство

public string name
Результат string

namedActions публичное свойство

public IDictionary namedActions
Результат ActionAST>.IDictionary

numberOfAlts публичное свойство

public int numberOfAlts
Результат int

predefinedRulePropertiesDict публичное статическое свойство

public static AttributeDict,Antlr4.Tool predefinedRulePropertiesDict
Результат AttributeDict

retvals публичное свойство

public AttributeDict,Antlr4.Tool retvals
Результат AttributeDict

validLexerCommands публичное статическое свойство

public static ISet validLexerCommands
Результат ISet