Enum BinaryOperator
java.lang.Object
java.lang.Enum<BinaryOperator>
org.apache.sling.scripting.sightly.compiler.expression.nodes.BinaryOperator
- All Implemented Interfaces:
Serializable
,Comparable<BinaryOperator>
Binary operators used in expressions.
-
Enum Constant Summary
Enum ConstantDescriptionAddition.Logical conjunction.String concatenation.Floating point division.Equal.Greater or equal.Greater than.Integer division.Less or equal.Less than.Multiplication.Not equal.Logical disjunction.Reminder.Strict version of equality, restricted to just some types.Strict version of the not-equal operator.Difference. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
abstract Object
static boolean
static boolean
static boolean
static boolean
static BinaryOperator
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.
-
Enum Constant Details
-
AND
Logical conjunction. -
OR
Logical disjunction. -
CONCATENATE
String concatenation. -
LT
Less than. -
LEQ
Less or equal. -
GT
Greater than. -
GEQ
Greater or equal. -
EQ
Equal. -
NEQ
Not equal. -
STRICT_EQ
Strict version of equality, restricted to just some types. -
STRICT_NEQ
Strict version of the not-equal operator. -
ADD
Addition. -
SUB
Difference. -
MUL
Multiplication. -
DIV
Floating point division. -
I_DIV
Integer division. -
REM
Reminder. -
IN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
eq
-
lt
-
leq
-
strictEq
-
inOp
-
eval
-