Package org.eclipse.jdt.core.dom
Class Assignment.Operator
java.lang.Object
org.eclipse.jdt.core.dom.Assignment.Operator
- Enclosing class:
Assignment
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Assignment.Operator= operator.static final Assignment.Operator&= operator.static final Assignment.Operator|= operator.static final Assignment.Operator^= operator.static final Assignment.Operator/= operator.static final Assignment.Operator<<== operator.static final Assignment.Operator-= operator.static final Assignment.Operator+= operator.static final Assignment.Operator%= operator.static final Assignment.Operator>>= operator.static final Assignment.Operator>>>= operator.static final Assignment.Operator= operator. -
Method Summary
Modifier and TypeMethodDescriptionstatic Assignment.OperatortoOperator(String token) Returns the assignment operator corresponding to the given string, ornullif none.toString()Returns the character sequence for the operator.
-
Field Details
-
ASSIGN
= operator. -
PLUS_ASSIGN
+= operator. -
MINUS_ASSIGN
-= operator. -
TIMES_ASSIGN
= operator. -
DIVIDE_ASSIGN
/= operator. -
BIT_AND_ASSIGN
&= operator. -
BIT_OR_ASSIGN
|= operator. -
BIT_XOR_ASSIGN
^= operator. -
REMAINDER_ASSIGN
%= operator. -
LEFT_SHIFT_ASSIGN
<<== operator. -
RIGHT_SHIFT_SIGNED_ASSIGN
>>= operator. -
RIGHT_SHIFT_UNSIGNED_ASSIGN
>>>= operator.
-
-
Method Details
-
toString
Returns the character sequence for the operator. -
toOperator
Returns the assignment operator corresponding to the given string, ornullif none.toOperatoris the converse oftoString: that is,Operator.toOperator(op.toString()) == opfor all operatorsop.- Parameters:
token- the character sequence for the operator- Returns:
- the assignment operator, or
nullif none
-