public class AcceptStateInfo extends Object
DFAState which is an accept state under
some condition. Certain settings, such as
ParserATNSimulator.getPredictionMode(), may be used in addition to
this information to determine whether or not a particular state is an accept
state.| Constructor and Description |
|---|
AcceptStateInfo(int prediction) |
AcceptStateInfo(int prediction,
LexerActionExecutor lexerActionExecutor) |
| Modifier and Type | Method and Description |
|---|---|
LexerActionExecutor |
getLexerActionExecutor()
Gets the
LexerActionExecutor which can be used to execute actions
and/or commands after the lexer matches a token. |
int |
getPrediction()
Gets the prediction made by this accept state.
|
public AcceptStateInfo(int prediction)
public AcceptStateInfo(int prediction,
LexerActionExecutor lexerActionExecutor)
public int getPrediction()
DFAState evaluate to
true. If predicate evaluation is enabled, the final prediction of
the accept state will be determined by the result of predicate
evaluation.public LexerActionExecutor getLexerActionExecutor()
LexerActionExecutor which can be used to execute actions
and/or commands after the lexer matches a token.Copyright © 1992–2024 Daniel Sun. All rights reserved.