mode lexer action by calling Lexer#mode with
the assigned mode.
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public | LexerModeAction(int
The mode value to pass to mode)Lexer#mode.Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public void | execute(Lexer
The lexer instance. lexer)Implements org. Lexer.
|
| public LexerActionType | Returns: This method returnsLexerActionType#MODE.Implements org. |
| public int | Returns: The lexer mode for thismode command.Get the lexer mode this action should transition the lexer to. |
| public int | |
| public boolean | Returns: This method returnsfalse.Implements org. |
| public String |
| mode | back to summary |
|---|---|
| private final int mode | |
| LexerModeAction | back to summary |
|---|---|
| public LexerModeAction(int mode) Constructs a new
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| execute | back to summary |
|---|---|
| public void execute(Lexer lexer) Implements org. Doc from org. Execute the lexer action in the context of the specified For position-dependent actions, the input stream must already be positioned correctly prior to calling this method. This action is implemented by calling | |
| getActionType | back to summary |
|---|---|
| public LexerActionType getActionType() Implements org. Doc from org. Gets the serialization type of the lexer action.
| |
| getMode | back to summary |
|---|---|
| public int getMode() Get the lexer mode this action should transition the lexer to.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isPositionDependent | back to summary |
|---|---|
| public boolean isPositionDependent() Implements org. Doc from org. Gets whether the lexer action is position-dependent. Position-dependent
actions may have different semantics depending on the Many lexer commands, including
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |