C# Class Antlr4.Runtime.Atn.Transition

An ATN transition between any two ATN states.
An ATN transition between any two ATN states. Subclasses define atom, set, epsilon, action, predicate, rule transitions.

This is a one way link. It emanates from a state (usually via a list of transitions) and has a target state.

Since we never have to change the ATN transitions once we construct it, we can fix these transitions as specific classes. The DFA transitions on the other hand need to update the labels as it adds transitions to the states. We'll use the term Edge for the DFA to distinguish them from ATN transitions.

Afficher le fichier Open project: antlr/antlr4 Class Usage Examples

Méthodes publiques

Свойство Type Description
serializationNames ReadOnlyCollection

Méthodes publiques

Méthode Description
Matches ( int symbol, int minVocabSymbol, int maxVocabSymbol ) : bool

Méthodes protégées

Méthode Description
Transition ( ATNState target ) : System

Method Details

Matches() public abstract méthode

public abstract Matches ( int symbol, int minVocabSymbol, int maxVocabSymbol ) : bool
symbol int
minVocabSymbol int
maxVocabSymbol int
Résultat bool

Transition() protected méthode

protected Transition ( ATNState target ) : System
target ATNState
Résultat System

Property Details

serializationNames public_oe static_oe property

public static ReadOnlyCollection serializationNames
Résultat ReadOnlyCollection