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.OperatorAND "&" operator.static final InfixExpression.OperatorConditional AND "&&" operator.static final InfixExpression.OperatorConditional OR "||" operator.static final InfixExpression.OperatorDivision "/" operator.static final InfixExpression.OperatorEquals "==" operator.static final InfixExpression.OperatorGreater than ">" operator.static final InfixExpression.OperatorGreater than or equals ">=" operator.static final InfixExpression.OperatorLeft shift "<<" operator.static final InfixExpression.OperatorLess than "<" operator.static final InfixExpression.OperatorLess than or equals "<=" operator.static final InfixExpression.OperatorSubtraction "-" operator.static final InfixExpression.OperatorNot equals "!static final InfixExpression.OperatorInclusive OR "|" operator.static final InfixExpression.OperatorAddition (or string concatenation) "+" operator.static final InfixExpression.OperatorRemainder "%" operator.static final InfixExpression.OperatorSigned right shift ">>" operator.static final InfixExpression.OperatorUnsigned right shift ">>>" operator.static final InfixExpression.OperatorMultiplication "*" operator.static final InfixExpression.OperatorExclusive OR "^" operator. -
Method Summary
Modifier and TypeMethodDescriptionstatic InfixExpression.OperatortoOperator(String token) Returns the infix operator corresponding to the given string, ornullif 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, 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 infix operator, or
nullif none
-