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.

Show file Open project: antlr/antlr4 Class Usage Examples

Public Properties

Property Type Description
serializationNames ReadOnlyCollection

Public Methods

Method Description
Matches ( int symbol, int minVocabSymbol, int maxVocabSymbol ) : bool

Protected Methods

Method Description
Transition ( ATNState target ) : System

Method Details

Matches() public abstract method

public abstract Matches ( int symbol, int minVocabSymbol, int maxVocabSymbol ) : bool
symbol int
minVocabSymbol int
maxVocabSymbol int
return bool

Transition() protected method

protected Transition ( ATNState target ) : System
target ATNState
return System

Property Details

serializationNames public static property

public static ReadOnlyCollection serializationNames
return ReadOnlyCollection