LexerPopModeAction

Implements the {@code popMode} lexer action by calling {@link Lexer#popMode}.

<p>The {@code popMode} command does not have any parameters, so this action is implemented as a singleton instance exposed by {@link #INSTANCE}.</p>

Members

Functions

equals
bool equals(Object obj)

@uml - @SuppressWarnings("EqualsWhichDoesntCheckParameterClass")

execute
void execute(InterfaceLexer lexer)

@uml {@inheritDoc}

getActionType
LexerActionType getActionType()

@uml {@inheritDoc} @return This method returns {@link LexerActionType#POP_MODE}. @safe @nothrow

isPositionDependent
bool isPositionDependent()

@uml {@inheritDoc} @return This method returns {@code false}.

toHash
size_t toHash()

@uml @override

toString
string toString()

@uml @override

Static functions

instance
LexerPopModeAction instance()

Inherited Members

From LexerAction

getActionType
LexerActionType getActionType()

Gets the serialization type of the lexer action.

isPositionDependent
bool isPositionDependent()

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
void execute(InterfaceLexer lexer)

Execute the lexer action in the context of the specified {@link Lexer}.

toHash
size_t toHash()

@uml @nothrow

Meta