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.Operator
toOperator
(String token) Returns the assignment operator corresponding to the given string, ornull
if 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, ornull
if none.toOperator
is the converse oftoString
: that is,Operator.toOperator(op.toString()) == op
for all operatorsop
.- Parameters:
token
- the character sequence for the operator- Returns:
- the assignment operator, or
null
if none
-