C# Класс 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.

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

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

Свойство Тип Описание
serializationNames ReadOnlyCollection

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

Метод Описание
Matches ( int symbol, int minVocabSymbol, int maxVocabSymbol ) : bool

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

Метод Описание
Transition ( ATNState target ) : System

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

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

public abstract Matches ( int symbol, int minVocabSymbol, int maxVocabSymbol ) : bool
symbol int
minVocabSymbol int
maxVocabSymbol int
Результат bool

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

protected Transition ( ATNState target ) : System
target ATNState
Результат System

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

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

public static ReadOnlyCollection serializationNames
Результат ReadOnlyCollection