Class Assignment.Operator

java.lang.Object
org.eclipse.jdt.core.dom.Assignment.Operator
Enclosing class:
Assignment

public static class Assignment.Operator extends Object
Assignment operators (typesafe enumeration).
AssignmentOperator:
   = ASSIGN
   += PLUS_ASSIGN
   -= MINUS_ASSIGN
   *= TIMES_ASSIGN
   /= DIVIDE_ASSIGN
   &= BIT_AND_ASSIGN
   |= BIT_OR_ASSIGN
   ^= BIT_XOR_ASSIGN
   %= REMAINDER_ASSIGN
   <<= LEFT_SHIFT_ASSIGN
   >>= RIGHT_SHIFT_SIGNED_ASSIGN
   >>>= RIGHT_SHIFT_UNSIGNED_ASSIGN
Since:
2.0
  • Field Details

  • Method Details

    • toString

      public String toString()
      Returns the character sequence for the operator.
      Overrides:
      toString in class Object
      Returns:
      the character sequence for the operator
    • toOperator

      public static Assignment.Operator toOperator(String token)
      Returns the assignment operator corresponding to the given string, or null if none.

      toOperator is the converse of toString: that is, Operator.toOperator(op.toString()) == op for all operators op.

      Parameters:
      token - the character sequence for the operator
      Returns:
      the assignment operator, or null if none