TokenUtil (groovy 2.4.14 API)
Date: 2018-02-24

Package: org.codehaus.groovy.syntax

## [Java] Class TokenUtil

- org.codehaus.groovy.syntax.TokenUtil

- Utility methods for working with Tokens.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `static int` | `removeAssignment(int op)` Removes the assignment portion of a given token.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Method Detail

    - #### public static int removeAssignment(int op)

      Removes the assignment portion of a given token. If the given token is not an operator with assignment, the given token is returned.

      Parameters:
        `op` - token for which to remove assignment
      Returns:
        token without assignment, or the original token if it was not an assignment operator