LexerSkipAction

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

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

@author Sam Harwell @since 4.2

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#SKIP}. @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
LexerSkipAction 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