Class LexerCustomAction

java.lang.Object
org.antlr.v4.runtime.atn.LexerCustomAction
All Implemented Interfaces:
LexerAction

public final class LexerCustomAction extends Object implements LexerAction
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. The implementation of a custom action is added to the generated code for the lexer in an override of Recognizer.action(org.antlr.v4.runtime.RuleContext, int, int) when the grammar is compiled.

This class may represent embedded actions created with the {...} syntax in ANTLR 4, as well as actions created for lexer commands where the command argument could not be evaluated when the grammar was compiled.

Since:
4.2
Author:
Sam Harwell