Utility methods for working with Tokens.
Type Params | Return Type | Name and description |
---|---|---|
|
static Optional<Token> |
asAssignment(int op) |
|
static int |
removeAssignment(int op) Removes the assignment portion of a given token. |
Removes the assignment portion of a given token. If the given token is not an operator with assignment, the given token is returned.
op
- token for which to remove assignment