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.

파일 보기 프로젝트 열기: antlr/antlr4 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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