@uml Constructs a new indexed custom action by associating a character offset with a {@link LexerAction}.
@uml {@inheritDoc}
@uml Gets the lexer action to execute.
@uml {@inheritDoc}
@uml Gets the location in the input {@link CharStream} at which the lexer action should be executed. The value is interpreted as an offset relative to the token start index.
@uml {@inheritDoc} @return This method returns {@code true}.
@uml @nothrow @trusted @override
Gets the serialization type of the lexer action.
Gets whether the lexer action is position-dependent. Position-dependent actions may have different semantics depending on the {@link CharStream} index at the time the action is executed.
Execute the lexer action in the context of the specified {@link Lexer}.
@uml @nothrow
This implementation of {@link LexerAction} is used for tracking input offsets for position-dependent actions within a {@link LexerActionExecutor}.
<p>This action is not serialized as part of the ATN, and is only required for position-dependent lexer actions which appear at a location other than the end of a rule. For more information about DFA optimizations employed for lexer actions, see {@link LexerActionExecutor#append} and {@link LexerActionExecutor#fixOffsetBeforeMatch}.</p>
@author Sam Harwell @since 4.2