public interface LexerAction
Modifier and Type | Method and Description |
---|---|
void |
execute(Lexer lexer)
Execute the lexer action in the context of the specified
Lexer . |
LexerActionType |
getActionType()
Gets the serialization type of the lexer action.
|
boolean |
isPositionDependent()
Gets whether the lexer action is position-dependent.
|
LexerActionType getActionType()
boolean isPositionDependent()
CharStream
index at the time the action is executed.
Many lexer commands, including type
, skip
, and
more
, do not check the input index during their execution.
Actions like this are position-independent, and may be stored more
efficiently as part of the LexerATNConfig.lexerActionExecutor
.
true
if the lexer action semantics can be affected by the
position of the input CharStream
at the time it is executed;
otherwise, false
.Copyright © 1992–2018 ANTLR. All rights reserved.