Package org.eclipse.jdt.core.dom
Class InfixExpression.Operator
- java.lang.Object
-
- org.eclipse.jdt.core.dom.InfixExpression.Operator
-
- Enclosing class:
- InfixExpression
public static class InfixExpression.Operator extends java.lang.ObjectInfix 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
Fields Modifier and Type Field Description static InfixExpression.OperatorANDAND "&" operator.static InfixExpression.OperatorCONDITIONAL_ANDConditional AND "&&" operator.static InfixExpression.OperatorCONDITIONAL_ORConditional OR "||" operator.static InfixExpression.OperatorDIVIDEDivision "/" operator.static InfixExpression.OperatorEQUALSEquals "==" operator.static InfixExpression.OperatorGREATERGreater than ">" operator.static InfixExpression.OperatorGREATER_EQUALSGreater than or equals ">=;" operator.static InfixExpression.OperatorLEFT_SHIFTLeft shift "<<" operator.static InfixExpression.OperatorLESSLess than "<" operator.static InfixExpression.OperatorLESS_EQUALSLess than or equals "<=" operator.static InfixExpression.OperatorMINUSSubtraction "-" operator.static InfixExpression.OperatorNOT_EQUALSNot equals "!static InfixExpression.OperatorORInclusive OR "|" operator.static InfixExpression.OperatorPLUSAddition (or string concatenation) "+" operator.static InfixExpression.OperatorREMAINDERRemainder "%" operator.static InfixExpression.OperatorRIGHT_SHIFT_SIGNEDSigned right shift ">>" operator.static InfixExpression.OperatorRIGHT_SHIFT_UNSIGNEDUnsigned right shift ">>>" operator.static InfixExpression.OperatorTIMESMultiplication "*" operator.static InfixExpression.OperatorXORExclusive OR "^" operator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InfixExpression.OperatortoOperator(java.lang.String token)Returns the infix operator corresponding to the given string, ornullif none.java.lang.StringtoString()Returns the character sequence for the operator.
-
-
-
Field Detail
-
TIMES
public static final InfixExpression.Operator TIMES
Multiplication "*" operator.
-
DIVIDE
public static final InfixExpression.Operator DIVIDE
Division "/" operator.
-
REMAINDER
public static final InfixExpression.Operator REMAINDER
Remainder "%" operator.
-
PLUS
public static final InfixExpression.Operator PLUS
Addition (or string concatenation) "+" operator.
-
MINUS
public static final InfixExpression.Operator MINUS
Subtraction "-" operator.
-
LEFT_SHIFT
public static final InfixExpression.Operator LEFT_SHIFT
Left shift "<<" operator.
-
RIGHT_SHIFT_SIGNED
public static final InfixExpression.Operator RIGHT_SHIFT_SIGNED
Signed right shift ">>" operator.
-
RIGHT_SHIFT_UNSIGNED
public static final InfixExpression.Operator RIGHT_SHIFT_UNSIGNED
Unsigned right shift ">>>" operator.
-
LESS
public static final InfixExpression.Operator LESS
Less than "<" operator.
-
GREATER
public static final InfixExpression.Operator GREATER
Greater than ">" operator.
-
LESS_EQUALS
public static final InfixExpression.Operator LESS_EQUALS
Less than or equals "<=" operator.
-
GREATER_EQUALS
public static final InfixExpression.Operator GREATER_EQUALS
Greater than or equals ">=;" operator.
-
EQUALS
public static final InfixExpression.Operator EQUALS
Equals "==" operator.
-
NOT_EQUALS
public static final InfixExpression.Operator NOT_EQUALS
Not equals "!=" operator.
-
XOR
public static final InfixExpression.Operator XOR
Exclusive OR "^" operator.
-
OR
public static final InfixExpression.Operator OR
Inclusive OR "|" operator.
-
AND
public static final InfixExpression.Operator AND
AND "&" operator.
-
CONDITIONAL_OR
public static final InfixExpression.Operator CONDITIONAL_OR
Conditional OR "||" operator.
-
CONDITIONAL_AND
public static final InfixExpression.Operator CONDITIONAL_AND
Conditional AND "&&" operator.
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns the character sequence for the operator.- Overrides:
toStringin classjava.lang.Object- Returns:
- the character sequence for the operator
-
toOperator
public static InfixExpression.Operator toOperator(java.lang.String token)
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
-
-