C# Class 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.
Afficher le fichier Open project: sharwell/antlr4cs Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
ATNConfig ( ATNState state, int alt, PredictionContext context ) : System
ATNConfig ( Antlr4 c, ATNState state, PredictionContext context ) : System

Private Methods

Méthode Description
CheckNonGreedyDecision ( Antlr4 source, ATNState target ) : bool
Transform ( ATNState state, PredictionContext context, Antlr4 semanticContext, bool checkNonGreedy, LexerActionExecutor lexerActionExecutor ) : Antlr4.Runtime.Atn.ATNConfig

Method Details

ATNConfig() protected méthode

protected ATNConfig ( ATNState state, int alt, PredictionContext context ) : System
state ATNState
alt int
context PredictionContext
Résultat System

ATNConfig() protected méthode

protected ATNConfig ( Antlr4 c, ATNState state, PredictionContext context ) : System
c Antlr4
state ATNState
context PredictionContext
Résultat System

AppendContext() public méthode

public AppendContext ( PredictionContext context, PredictionContextCache contextCache ) : Antlr4.Runtime.Atn.ATNConfig
context PredictionContext
contextCache PredictionContextCache
Résultat Antlr4.Runtime.Atn.ATNConfig

AppendContext() public méthode

public AppendContext ( int context, PredictionContextCache contextCache ) : Antlr4.Runtime.Atn.ATNConfig
context int
contextCache PredictionContextCache
Résultat Antlr4.Runtime.Atn.ATNConfig

Clone() public méthode

public Clone ( ) : Antlr4.Runtime.Atn.ATNConfig
Résultat Antlr4.Runtime.Atn.ATNConfig

Contains() public méthode

public Contains ( Antlr4 subconfig ) : bool
subconfig Antlr4
Résultat bool

Create() public static méthode

public static Create ( ATNState state, int alt, PredictionContext context ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
alt int
context PredictionContext
Résultat Antlr4.Runtime.Atn.ATNConfig

Create() public static méthode

public static Create ( ATNState state, int alt, PredictionContext context, Antlr4 semanticContext ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
alt int
context PredictionContext
semanticContext Antlr4
Résultat Antlr4.Runtime.Atn.ATNConfig

Create() public static méthode

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
Résultat Antlr4.Runtime.Atn.ATNConfig

Equals() public méthode

public Equals ( Antlr4 other ) : bool
other Antlr4
Résultat bool

Equals() public méthode

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
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

ToDotString() public méthode

public ToDotString ( ) : string
Résultat string

ToString() public méthode

public ToString ( ) : string
Résultat string

ToString() public méthode

public ToString ( IRecognizer recog, bool showAlt ) : string
recog IRecognizer
showAlt bool
Résultat string

ToString() public méthode

public ToString ( IRecognizer recog, bool showAlt, bool showContext ) : string
recog IRecognizer
showAlt bool
showContext bool
Résultat string

Transform() public méthode

public Transform ( ATNState state, Antlr4 semanticContext, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
semanticContext Antlr4
checkNonGreedy bool
Résultat Antlr4.Runtime.Atn.ATNConfig

Transform() public méthode

public Transform ( ATNState state, LexerActionExecutor lexerActionExecutor, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
lexerActionExecutor LexerActionExecutor
checkNonGreedy bool
Résultat Antlr4.Runtime.Atn.ATNConfig

Transform() public méthode

public Transform ( ATNState state, PredictionContext context, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
context PredictionContext
checkNonGreedy bool
Résultat Antlr4.Runtime.Atn.ATNConfig

Transform() public méthode

public Transform ( ATNState state, bool checkNonGreedy ) : Antlr4.Runtime.Atn.ATNConfig
state ATNState
checkNonGreedy bool
Résultat Antlr4.Runtime.Atn.ATNConfig