C# Класс Antlr4.Runtime.Atn.ATNConfig

A tuple: (ATN state, predicted alt, syntactic, semantic context).
A tuple: (ATN state, predicted alt, syntactic, semantic context). The syntactic context is a graph-structured stack node whose path(s) to the root is the rule invocation(s) chain used to arrive at the state. The semantic context is the tree of semantic predicates encountered before reaching an ATN state.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AppendContext ( PredictionContext context, PredictionContextCache contextCache ) : Antlr4.Runtime.Atn.ATNConfig
AppendContext ( int context, PredictionContextCache contextCache ) : Antlr4.Runtime.Atn.ATNConfig
Clone ( ) : Antlr4.Runtime.Atn.ATNConfig
Contains ( Antlr4 subconfig ) : bool
Create ( ATNState state, int alt, PredictionContext context ) : Antlr4.Runtime.Atn.ATNConfig
Create ( ATNState state, int alt, PredictionContext context, Antlr4 semanticContext ) : Antlr4.Runtime.Atn.ATNConfig
Create ( ATNState state, int alt, PredictionContext context, Antlr4 semanticContext, LexerActionExecutor lexerActionExecutor ) : Antlr4.Runtime.Atn.ATNConfig
Equals ( Antlr4 other ) : bool
Equals ( object o ) : bool

An ATN configuration is equal to another if both have the same state, they predict the same alternative, and syntactic/semantic contexts are the same.

GetHashCode ( ) : int
ToDotString ( ) : string
ToString ( ) : string
ToString ( IRecognizer recog, bool showAlt ) : string
ToString ( IRecognizer recog, bool showAlt, bool showContext ) : string
Transform ( ATNState state, Antlr4 semanticContext, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
Transform ( ATNState state, LexerActionExecutor lexerActionExecutor, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
Transform ( ATNState state, PredictionContext context, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
Transform ( ATNState state, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig

Защищенные методы

Метод Описание
ATNConfig ( ATNState state, int alt, PredictionContext context ) : System
ATNConfig ( Antlr4 c, ATNState state, PredictionContext context ) : System

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

Метод Описание
CheckNonGreedyDecision ( Antlr4 source, ATNState target ) : bool
Transform ( ATNState state, PredictionContext context, Antlr4 semanticContext, bool checkNonGreedy, LexerActionExecutor lexerActionExecutor ) : Antlr4.Runtime.Atn.ATNConfig

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

ATNConfig() защищенный метод

protected ATNConfig ( ATNState state, int alt, PredictionContext context ) : System
state ATNState
alt int
context PredictionContext
Результат System

ATNConfig() защищенный метод

protected ATNConfig ( Antlr4 c, ATNState state, PredictionContext context ) : System
c Antlr4
state ATNState
context PredictionContext
Результат System

AppendContext() публичный метод

public AppendContext ( PredictionContext context, PredictionContextCache contextCache ) : Antlr4.Runtime.Atn.ATNConfig
context PredictionContext
contextCache PredictionContextCache
Результат Antlr4.Runtime.Atn.ATNConfig

AppendContext() публичный метод

public AppendContext ( int context, PredictionContextCache contextCache ) : Antlr4.Runtime.Atn.ATNConfig
context int
contextCache PredictionContextCache
Результат Antlr4.Runtime.Atn.ATNConfig

Clone() публичный метод

public Clone ( ) : Antlr4.Runtime.Atn.ATNConfig
Результат Antlr4.Runtime.Atn.ATNConfig

Contains() публичный метод

public Contains ( Antlr4 subconfig ) : bool
subconfig Antlr4
Результат bool

Create() публичный статический метод

public static Create ( ATNState state, int alt, PredictionContext context ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
alt int
context PredictionContext
Результат Antlr4.Runtime.Atn.ATNConfig

Create() публичный статический метод

public static Create ( ATNState state, int alt, PredictionContext context, Antlr4 semanticContext ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
alt int
context PredictionContext
semanticContext Antlr4
Результат Antlr4.Runtime.Atn.ATNConfig

Create() публичный статический метод

public static Create ( ATNState state, int alt, PredictionContext context, Antlr4 semanticContext, LexerActionExecutor lexerActionExecutor ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
alt int
context PredictionContext
semanticContext Antlr4
lexerActionExecutor LexerActionExecutor
Результат Antlr4.Runtime.Atn.ATNConfig

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

public Equals ( Antlr4 other ) : bool
other Antlr4
Результат bool

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

An ATN configuration is equal to another if both have the same state, they predict the same alternative, and syntactic/semantic contexts are the same.
public Equals ( object o ) : bool
o object
Результат bool

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

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

ToDotString() публичный метод

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

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

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

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

public ToString ( IRecognizer recog, bool showAlt ) : string
recog IRecognizer
showAlt bool
Результат string

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

public ToString ( IRecognizer recog, bool showAlt, bool showContext ) : string
recog IRecognizer
showAlt bool
showContext bool
Результат string

Transform() публичный метод

public Transform ( ATNState state, Antlr4 semanticContext, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
semanticContext Antlr4
checkNonGreedy bool
Результат Antlr4.Runtime.Atn.ATNConfig

Transform() публичный метод

public Transform ( ATNState state, LexerActionExecutor lexerActionExecutor, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
lexerActionExecutor LexerActionExecutor
checkNonGreedy bool
Результат Antlr4.Runtime.Atn.ATNConfig

Transform() публичный метод

public Transform ( ATNState state, PredictionContext context, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
context PredictionContext
checkNonGreedy bool
Результат Antlr4.Runtime.Atn.ATNConfig

Transform() публичный метод

public Transform ( ATNState state, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
checkNonGreedy bool
Результат Antlr4.Runtime.Atn.ATNConfig