| Modifier and Type | Field and Description |
|---|---|
| public final ATNState | atnStartState
From which ATN state did we create this DFA? |
| public final int | |
| private static final EmptyEdgeMap | EMPTY_PRECEDENCE_EDGES
This field initializes the outgoing edge map for the special starting DFA state created for precedence DFAs. |
| private final EmptyEdgeMap | emptyContextEdgeMap
This is the backing field for |
| private final EmptyEdgeMap | emptyEdgeMap
This is the backing field for |
| private final int | maxDfaEdge
This is the backing field for |
| private final int | minDfaEdge
This is the backing field for |
| private final AtomicInteger | |
| private final boolean | precedenceDfa
|
| public final AtomicReference | s0
This is the start state for SLL prediction. |
| public final AtomicReference | s0full
This is the start state for full context prediction. |
| public final ConcurrentMap | states
A set of all DFA states. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public DFAState | |
| public EmptyEdgeMap | Returns: The empty context edge map used for initializingDFAState
instances associated with this DFA.Gets an empty edge map initialized with the minimum and maximum context values allowed to be stored in this DFA. |
| public EmptyEdgeMap | Returns: The empty edge map used for initializingDFAState
instances associated with this DFA.Gets an empty edge map initialized with the minimum and maximum symbol values allowed to be stored in this DFA. |
| public final int | Returns: The maximum input symbol which can be stored in this DFA.Gets the maximum input symbol value which can be stored in this DFA. |
| public final int | Returns: The minimum input symbol which can be stored in this DFA.Gets the minimum input symbol value which can be stored in this DFA. |
| public final DFAState | Returns: The start state corresponding to the specified precedence, ornull if no start state exists for the specified precedence.The current precedence. precedence, boolean fullContext)Get the start state for a specific precedence value. |
| public boolean | |
| public boolean | |
| public final boolean | Returns: true if this is a precedence DFA; otherwise,
false.Gets whether this DFA is a precedence DFA. |
| public final void | setPrecedenceDfa(boolean
true if this is a precedence DFA; otherwise,
false
Deprecated
This method no longer performs any action.
Sets whether this is a precedence DFA.
|
| public final void | setPrecedenceStartState(int
The current precedence. precedence, boolean fullContext, DFAState The start state corresponding to the specified
precedence. startState)Set the start state for a specific precedence value. |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | toString(String[] tokenNames, String[] ruleNames)
Deprecated
Use
toString(Vocabulary, String[]) instead.
|
| public String |
| atnStartState | back to summary |
|---|---|
| public final ATNState atnStartState From which ATN state did we create this DFA? | |
| decision | back to summary |
|---|---|
| public final int decision | |
| EMPTY_PRECEDENCE_EDGES | back to summary |
|---|---|
| private static final EmptyEdgeMap<DFAState> EMPTY_PRECEDENCE_EDGES This field initializes the outgoing edge map for the special starting DFA state created for precedence DFAs. The range of allowed values assigned to this map represent the
precedence levels for which an edge will be stored in the DFA. If a
precedence level is encountered outside this range, the DFA will not be
able to hold an edge pointing to the start state for the decision, so
prediction for this precedence level will always result in recomputing
the start state. Should this occur, the existing start state can still be
located within | |
| emptyContextEdgeMap | back to summary |
|---|---|
| private final EmptyEdgeMap<DFAState> emptyContextEdgeMap This is the backing field for | |
| emptyEdgeMap | back to summary |
|---|---|
| private final EmptyEdgeMap<DFAState> emptyEdgeMap This is the backing field for | |
| maxDfaEdge | back to summary |
|---|---|
| private final int maxDfaEdge This is the backing field for | |
| minDfaEdge | back to summary |
|---|---|
| private final int minDfaEdge This is the backing field for | |
| nextStateNumber | back to summary |
|---|---|
| private final AtomicInteger nextStateNumber | |
| precedenceDfa | back to summary |
|---|---|
| private final boolean precedenceDfa
| |
| s0 | back to summary |
|---|---|
| public final AtomicReference<DFAState> s0 This is the start state for SLL prediction. When | |
| s0full | back to summary |
|---|---|
| public final AtomicReference<DFAState> s0full This is the start state for full context prediction.
| |
| states | back to summary |
|---|---|
| public final ConcurrentMap<DFAState, DFAState> states A set of all DFA states. Use Note that this collection of states holds the DFA states for both SLL
and LL prediction. Only the start state needs to be differentiated for
these cases, which is tracked by the | |
| DFA | back to summary |
|---|---|
| public DFA(ATNState atnStartState) Constructs a The start state for a
| |
| DFA | back to summary |
|---|---|
| public DFA(ATNState atnStartState, int decision) Constructs a
| |
| addState | back to summary |
|---|---|
| public DFAState addState(DFAState state) | |
| getEmptyContextEdgeMap | back to summary |
|---|---|
| public EmptyEdgeMap Gets an empty edge map initialized with the minimum and maximum context values allowed to be stored in this DFA. The value assigned to a context edge within the DFA is an ATN state
number, so the range of allowed values for the context edge map is
This empty edge map serves a purpose similar to
| |
| getEmptyEdgeMap | back to summary |
|---|---|
| public EmptyEdgeMap Gets an empty edge map initialized with the minimum and maximum symbol values allowed to be stored in this DFA. Setting a range of allowed symbol values for a DFA bounds the memory
overhead for storing the map of outgoing edges. The various
implementations of Empty edge maps are immutable objects which track the allowed range of
input symbols that can be stored as edges in the DFA. By storing an empty
edge map instance in the DFA, new instances of
| |
| getMaxDfaEdge | back to summary |
|---|---|
| public final int getMaxDfaEdge() Gets the maximum input symbol value which can be stored in this DFA.
| |
| getMinDfaEdge | back to summary |
|---|---|
| public final int getMinDfaEdge() Gets the minimum input symbol value which can be stored in this DFA.
| |
| getPrecedenceStartState | back to summary |
|---|---|
| public final DFAState getPrecedenceStartState(int precedence, boolean fullContext) Get the start state for a specific precedence value.
| |
| isContextSensitive | back to summary |
|---|---|
| public boolean isContextSensitive() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| isPrecedenceDfa | back to summary |
|---|---|
| public final boolean isPrecedenceDfa() Gets whether this DFA is a precedence DFA. Precedence DFAs use a special
start state
| |
| setPrecedenceDfa | back to summary |
|---|---|
| public final void setPrecedenceDfa(boolean precedenceDfa)
Deprecated This method no longer performs any action. Sets whether this is a precedence DFA.
| |
| setPrecedenceStartState | back to summary |
|---|---|
| public final void setPrecedenceStartState(int precedence, boolean fullContext, DFAState startState) Set the start state for a specific precedence value.
| |
| toLexerString | back to summary |
|---|---|
| public String toLexerString() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toString | back to summary |
|---|---|
| public String toString(String[] tokenNames)
Deprecated Use
| |
| toString | back to summary |
|---|---|
| public String toString(Vocabulary vocabulary) | |
| toString | back to summary |
|---|---|
| public String toString(String[] tokenNames, String[] ruleNames)
Deprecated Use
| |
| toString | back to summary |
|---|---|
| public String toString(Vocabulary vocabulary, String[] ruleNames) | |