LexerIndexedCustomAction

TODO add class description

Constructors

this
this(int offset, LexerAction action)

@uml Constructs a new indexed custom action by associating a character offset with a {@link LexerAction}.

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}

getAction
LexerAction getAction()

@uml Gets the lexer action to execute.

getActionType
LexerActionType getActionType()

@uml {@inheritDoc}

getOffset
int getOffset()

@uml Gets the location in the input {@link CharStream} at which the lexer action should be executed. The value is interpreted as an offset relative to the token start index.

isPositionDependent
bool isPositionDependent()

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

toHash
size_t toHash()

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