Package | Description |
---|---|
org.antlr.v4.automata | |
org.antlr.v4.runtime.atn |
Modifier and Type | Field | Description |
---|---|---|
protected Map<LexerAction,Integer> |
LexerATNFactory.actionToIndexMap |
Maps from a
LexerAction object to the action index. |
protected Map<Integer,LexerAction> |
LexerATNFactory.indexToActionMap |
Maps from an action index to a
LexerAction object. |
Modifier and Type | Method | Description |
---|---|---|
protected ATNFactory.Handle |
LexerATNFactory.action(GrammarAST node,
LexerAction lexerAction) |
|
protected int |
LexerATNFactory.getLexerActionIndex(LexerAction lexerAction) |
Modifier and Type | Class | Description |
---|---|---|
class |
LexerChannelAction |
Implements the
channel lexer action by calling
Lexer.setChannel(int) with the assigned channel. |
class |
LexerCustomAction |
Executes a custom lexer action by calling
Recognizer.action(org.antlr.v4.runtime.RuleContext, int, int) with the
rule and action indexes assigned to the custom action. |
class |
LexerIndexedCustomAction |
This implementation of
LexerAction is used for tracking input offsets
for position-dependent actions within a LexerActionExecutor . |
class |
LexerModeAction |
Implements the
mode lexer action by calling Lexer.mode(int) with
the assigned mode. |
class |
LexerMoreAction |
Implements the
more lexer action by calling Lexer.more() . |
class |
LexerPopModeAction |
Implements the
popMode lexer action by calling Lexer.popMode() . |
class |
LexerPushModeAction |
Implements the
pushMode lexer action by calling
Lexer.pushMode(int) with the assigned mode. |
class |
LexerSkipAction |
Implements the
skip lexer action by calling Lexer.skip() . |
class |
LexerTypeAction |
Implements the
type lexer action by calling Lexer.setType(int)
with the assigned type. |
Modifier and Type | Field | Description |
---|---|---|
LexerAction[] |
ATN.lexerActions |
For lexer ATNs, this is an array of
LexerAction objects which may
be referenced by action transitions in the ATN. |
Modifier and Type | Method | Description |
---|---|---|
LexerAction |
LexerIndexedCustomAction.getAction() |
Gets the lexer action to execute.
|
LexerAction[] |
LexerActionExecutor.getLexerActions() |
Gets the lexer actions to be executed by this executor.
|
protected LexerAction |
ATNDeserializer.lexerActionFactory(LexerActionType type,
int data1,
int data2) |
Modifier and Type | Method | Description |
---|---|---|
static LexerActionExecutor |
LexerActionExecutor.append(LexerActionExecutor lexerActionExecutor,
LexerAction lexerAction) |
Creates a
LexerActionExecutor which executes the actions for
the input lexerActionExecutor followed by a specified
lexerAction . |
Constructor | Description |
---|---|
LexerActionExecutor(LexerAction[] lexerActions) |
Constructs an executor for a sequence of
LexerAction actions. |
LexerIndexedCustomAction(int offset,
LexerAction action) |
Constructs a new indexed custom action by associating a character offset
with a
LexerAction . |
Copyright © 1992–2018 ANTLR. All rights reserved.