public enum BinaryOperator extends java.lang.Enum<BinaryOperator>
Enum Constant and Description |
---|
ADD
Addition.
|
AND
Logical conjunction.
|
CONCATENATE
String concatenation.
|
DIV
Floating point division.
|
EQ
Equal.
|
GEQ
Greater or equal.
|
GT
Greater than.
|
I_DIV
Integer division.
|
IN |
LEQ
Less or equal.
|
LT
Less than.
|
MUL
Multiplication.
|
NEQ
Not equal.
|
OR
Logical disjunction.
|
REM
Reminder.
|
STRICT_EQ
Strict version of equality, restricted to just some types.
|
STRICT_NEQ
Strict version of the not-equal operator.
|
SUB
Difference.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
eq(java.lang.Object left,
java.lang.Object right) |
abstract java.lang.Object |
eval(java.lang.Object left,
java.lang.Object right) |
static boolean |
inOp(java.lang.Object left,
java.lang.Object right) |
static boolean |
leq(java.lang.Object left,
java.lang.Object right) |
static boolean |
lt(java.lang.Object left,
java.lang.Object right) |
static boolean |
strictEq(java.lang.Object left,
java.lang.Object right) |
static BinaryOperator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BinaryOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BinaryOperator AND
public static final BinaryOperator OR
public static final BinaryOperator CONCATENATE
public static final BinaryOperator LT
public static final BinaryOperator LEQ
public static final BinaryOperator GT
public static final BinaryOperator GEQ
public static final BinaryOperator EQ
public static final BinaryOperator NEQ
public static final BinaryOperator STRICT_EQ
public static final BinaryOperator STRICT_NEQ
public static final BinaryOperator ADD
public static final BinaryOperator SUB
public static final BinaryOperator MUL
public static final BinaryOperator DIV
public static final BinaryOperator I_DIV
public static final BinaryOperator REM
public static final BinaryOperator IN
public static BinaryOperator[] values()
for (BinaryOperator c : BinaryOperator.values()) System.out.println(c);
public static BinaryOperator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static boolean eq(java.lang.Object left, java.lang.Object right)
public static boolean lt(java.lang.Object left, java.lang.Object right)
public static boolean leq(java.lang.Object left, java.lang.Object right)
public static boolean strictEq(java.lang.Object left, java.lang.Object right)
public static boolean inOp(java.lang.Object left, java.lang.Object right)
public abstract java.lang.Object eval(java.lang.Object left, java.lang.Object right)
Copyright © 2022 The Apache Software Foundation. All rights reserved.