LexerTypeAction

@uml Implements the {@code type} lexer action by calling {@link Lexer#setType} with the assigned type.

Constructors

this
this(int type)

@uml Constructs a new {@code type} action with the specified token type value. @param type The type to assign to the token using {@link Lexer#setType}.

Members

Functions

equals
bool equals(Object obj)
Undocumented in source. Be warned that the author may not have intended to support it.
execute
void execute(InterfaceLexer lexer)

@uml {@inheritDoc}

getActionType
LexerActionType getActionType()

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

getType
int getType()

@uml Gets the type to assign to a token created by the lexer. @return The type to assign to a token created by the lexer.

isPositionDependent
bool isPositionDependent()

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

toHash
size_t toHash()

@uml @safe @nothrow @override

toString
string toString()

@uml @override

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