Package org.eclipse.jdt.core.dom
Class InfixExpression.Operator
java.lang.Object
org.eclipse.jdt.core.dom.InfixExpression.Operator
- Enclosing class:
- InfixExpression
Infix operators (typesafe enumeration).
InfixOperator:
* TIMES
/ DIVIDE
% REMAINDER
+ PLUS
- MINUS
<< LEFT_SHIFT
>> RIGHT_SHIFT_SIGNED
>>> RIGHT_SHIFT_UNSIGNED
< LESS
> GREATER
<= LESS_EQUALS
>= GREATER_EQUALS
== EQUALS
!= NOT_EQUALS
^ XOR
& AND
| OR
&& CONDITIONAL_AND
|| CONDITIONAL_OR
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InfixExpression.Operator
AND "&" operator.static final InfixExpression.Operator
Conditional AND "&&" operator.static final InfixExpression.Operator
Conditional OR "||" operator.static final InfixExpression.Operator
Division "/" operator.static final InfixExpression.Operator
Equals "==" operator.static final InfixExpression.Operator
Greater than ">" operator.static final InfixExpression.Operator
Greater than or equals ">=" operator.static final InfixExpression.Operator
Left shift "<<" operator.static final InfixExpression.Operator
Less than "<" operator.static final InfixExpression.Operator
Less than or equals "<=" operator.static final InfixExpression.Operator
Subtraction "-" operator.static final InfixExpression.Operator
Not equals "!static final InfixExpression.Operator
Inclusive OR "|" operator.static final InfixExpression.Operator
Addition (or string concatenation) "+" operator.static final InfixExpression.Operator
Remainder "%" operator.static final InfixExpression.Operator
Signed right shift ">>" operator.static final InfixExpression.Operator
Unsigned right shift ">>>" operator.static final InfixExpression.Operator
Multiplication "*" operator.static final InfixExpression.Operator
Exclusive OR "^" operator. -
Method Summary
Modifier and TypeMethodDescriptionstatic InfixExpression.Operator
toOperator
(String token) Returns the infix operator corresponding to the given string, ornull
if none.toString()
Returns the character sequence for the operator.
-
Field Details
-
TIMES
Multiplication "*" operator. -
DIVIDE
Division "/" operator. -
REMAINDER
Remainder "%" operator. -
PLUS
Addition (or string concatenation) "+" operator. -
MINUS
Subtraction "-" operator. -
LEFT_SHIFT
Left shift "<<" operator. -
RIGHT_SHIFT_SIGNED
Signed right shift ">>" operator. -
RIGHT_SHIFT_UNSIGNED
Unsigned right shift ">>>" operator. -
LESS
Less than "<" operator. -
GREATER
Greater than ">" operator. -
LESS_EQUALS
Less than or equals "<=" operator. -
GREATER_EQUALS
Greater than or equals ">=" operator. -
EQUALS
Equals "==" operator. -
NOT_EQUALS
Not equals "!=" operator. -
XOR
Exclusive OR "^" operator. -
OR
Inclusive OR "|" operator. -
AND
AND "&" operator. -
CONDITIONAL_OR
Conditional OR "||" operator. -
CONDITIONAL_AND
Conditional AND "&&" operator.
-
-
Method Details
-
toString
Returns the character sequence for the operator. -
toOperator
Returns the infix 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 infix operator, or
null
if none
-