public static class InfixExpression.Operator extends Object
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
Modifier and Type | Field and Description |
---|---|
static InfixExpression.Operator |
AND
AND "&" operator.
|
static InfixExpression.Operator |
CONDITIONAL_AND
Conditional AND "&&" operator.
|
static InfixExpression.Operator |
CONDITIONAL_OR
Conditional OR "||" operator.
|
static InfixExpression.Operator |
DIVIDE
Division "/" operator.
|
static InfixExpression.Operator |
EQUALS
Equals "==" operator.
|
static InfixExpression.Operator |
GREATER
Greater than ">" operator.
|
static InfixExpression.Operator |
GREATER_EQUALS
Greater than or equals ">=;" operator.
|
static InfixExpression.Operator |
LEFT_SHIFT
Left shift "<<" operator.
|
static InfixExpression.Operator |
LESS
Less than "<" operator.
|
static InfixExpression.Operator |
LESS_EQUALS
Less than or equals "<=" operator.
|
static InfixExpression.Operator |
MINUS
Subtraction "-" operator.
|
static InfixExpression.Operator |
NOT_EQUALS
Not equals "!
|
static InfixExpression.Operator |
OR
Inclusive OR "|" operator.
|
static InfixExpression.Operator |
PLUS
Addition (or string concatenation) "+" operator.
|
static InfixExpression.Operator |
REMAINDER
Remainder "%" operator.
|
static InfixExpression.Operator |
RIGHT_SHIFT_SIGNED
Signed right shift ">>" operator.
|
static InfixExpression.Operator |
RIGHT_SHIFT_UNSIGNED
Unsigned right shift ">>>" operator.
|
static InfixExpression.Operator |
TIMES
Multiplication "*" operator.
|
static InfixExpression.Operator |
XOR
Exclusive OR "^" operator.
|
Modifier and Type | Method and Description |
---|---|
static InfixExpression.Operator |
toOperator(String token)
Returns the infix operator corresponding to the given string,
or
null if none. |
String |
toString()
Returns the character sequence for the operator.
|
public static final InfixExpression.Operator TIMES
public static final InfixExpression.Operator DIVIDE
public static final InfixExpression.Operator REMAINDER
public static final InfixExpression.Operator PLUS
public static final InfixExpression.Operator MINUS
public static final InfixExpression.Operator LEFT_SHIFT
public static final InfixExpression.Operator RIGHT_SHIFT_SIGNED
public static final InfixExpression.Operator RIGHT_SHIFT_UNSIGNED
public static final InfixExpression.Operator LESS
public static final InfixExpression.Operator GREATER
public static final InfixExpression.Operator LESS_EQUALS
public static final InfixExpression.Operator GREATER_EQUALS
public static final InfixExpression.Operator EQUALS
public static final InfixExpression.Operator NOT_EQUALS
public static final InfixExpression.Operator XOR
public static final InfixExpression.Operator OR
public static final InfixExpression.Operator AND
public static final InfixExpression.Operator CONDITIONAL_OR
public static final InfixExpression.Operator CONDITIONAL_AND
public String toString()
public static InfixExpression.Operator toOperator(String token)
null
if none.
toOperator
is the converse of toString
:
that is, Operator.toOperator(op.toString()) == op
for
all operators op
.
token
- the character sequence for the operatornull
if none
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.