LexerChannelAction

@uml @final

Constructors

this
this(int channel)

@uml Constructs a new {@code channel} action with the specified channel value. @param channel The channel value to pass to {@link Lexer#setChannel}.

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 <p>This action is implemented by calling {@link Lexer#setChannel} with the value provided by {@link #getChannel}.</p> @override

getActionType
LexerActionType getActionType()

@uml @override @safe @nothrow

getChannel
int getChannel()

@uml Gets the channel to use for the {@link Token} created by the lexer @return The channel to use for the {@link Token} created by the lexer.

isPositionDependent
bool isPositionDependent()

@uml @override

toHash
size_t toHash()

@uml @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