Class TokenUtil

  • public class TokenUtil
    extends Object
    Utility methods for working with Tokens.
    • Method Detail

      • removeAssignment

        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.
        op - token for which to remove assignment
        token without assignment, or the original token if it was not an assignment operator