Enum BinaryOperatorExpression.Operator
java.lang.Object
java.lang.Enum<BinaryOperatorExpression.Operator>
net.thisptr.jackson.jq.internal.tree.binaryop.BinaryOperatorExpression.Operator
- All Implemented Interfaces:
Serializable, Comparable<BinaryOperatorExpression.Operator>, java.lang.constant.Constable
- Enclosing class:
BinaryOperatorExpression
public static enum BinaryOperatorExpression.Operator
extends Enum<BinaryOperatorExpression.Operator>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringprivate static final Map<String, BinaryOperatorExpression.Operator> final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateOperator(String image, int precedence, BinaryOperatorExpression.Operator.Associativity associativity) -
Method Summary
Modifier and TypeMethodDescriptionbuildTree(Expression lhs, Expression rhs, Version version) protected abstract Expressioncreate(Expression lhs, Expression rhs, Version version) Creates a newExpressioninstance based on the provided left-hand side (lhs) expression, right-hand side (rhs) expression, and the specified version.Returns the enum constant of this type with the specified name.static BinaryOperatorExpression.Operator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ASSIGN
-
UDPATE
-
DEFAULT_EQUAL
-
PLUS_EQUAL
-
MINUS_EQUAL
-
TIMES_EQUAL
-
DIVIDE_EQUAL
-
MODULO_EQUAL
-
DEFAULT
-
OR
-
AND
-
LESS_EQUAL
-
LESS
-
GREATER_EQUAL
-
GREATER
-
EQUAL
-
NOT_EQUAL
-
PLUS
-
MINUS
-
MODULO
-
DIVIDE
-
TIMES
-
-
Field Details
-
image
-
precedence
public final int precedence -
associativity
-
lookup
-
-
Constructor Details
-
Operator
private Operator(String image, int precedence, BinaryOperatorExpression.Operator.Associativity associativity)
-
-
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
-
create
Creates a newExpressioninstance based on the provided left-hand side (lhs) expression, right-hand side (rhs) expression, and the specified version.- Parameters:
lhs- the left-hand side expressionrhs- the right-hand side expressionversion- the version providing contextual information for the expression creation- Returns:
- a new instance of
Expressionthat represents the operation between the lhs and rhs expressions
-
fromImage
-
buildTree
-