Enum BinaryOperator
java.lang.Object
java.lang.Enum<BinaryOperator>
org.apache.sling.scripting.sightly.compiler.expression.nodes.BinaryOperator
- All Implemented Interfaces:
Serializable,Comparable<BinaryOperator>,java.lang.constant.Constable
Binary operators used in expressions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum 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 booleanabstract Objectstatic booleanstatic booleanstatic booleanstatic booleanstatic BinaryOperatorReturns 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.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
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
-