Enum BinaryOperatorExpression.Operator
- java.lang.Object
-
- java.lang.Enum<BinaryOperatorExpression.Operator>
-
- net.thisptr.jackson.jq.internal.tree.binaryop.BinaryOperatorExpression.Operator
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BinaryOperatorExpression.Operator>
- Enclosing class:
- BinaryOperatorExpression
public static enum BinaryOperatorExpression.Operator extends java.lang.Enum<BinaryOperatorExpression.Operator>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBinaryOperatorExpression.Operator.Associativity
-
Enum Constant Summary
Enum Constants Enum Constant Description ANDASSIGNDEFAULTDEFAULT_EQUALDIVIDEDIVIDE_EQUALEQUALGREATERGREATER_EQUALLESSLESS_EQUALMINUSMINUS_EQUALMODULOMODULO_EQUALNOT_EQUALORPLUSPLUS_EQUALTIMESTIMES_EQUALUDPATE
-
Field Summary
Fields Modifier and Type Field Description BinaryOperatorExpression.Operator.Associativityassociativityjava.lang.Stringimageprivate static java.util.Map<java.lang.String,BinaryOperatorExpression.Operator>lookupintprecedence
-
Constructor Summary
Constructors Modifier Constructor Description privateOperator(java.lang.String image, int precedence, BinaryOperatorExpression.Operator.Associativity associativity)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ExpressionbuildTree(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.static BinaryOperatorExpression.OperatorfromImage(java.lang.String image)static BinaryOperatorExpression.OperatorvalueOf(java.lang.String name)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 Detail
-
ASSIGN
public static final BinaryOperatorExpression.Operator ASSIGN
-
UDPATE
public static final BinaryOperatorExpression.Operator UDPATE
-
DEFAULT_EQUAL
public static final BinaryOperatorExpression.Operator DEFAULT_EQUAL
-
PLUS_EQUAL
public static final BinaryOperatorExpression.Operator PLUS_EQUAL
-
MINUS_EQUAL
public static final BinaryOperatorExpression.Operator MINUS_EQUAL
-
TIMES_EQUAL
public static final BinaryOperatorExpression.Operator TIMES_EQUAL
-
DIVIDE_EQUAL
public static final BinaryOperatorExpression.Operator DIVIDE_EQUAL
-
MODULO_EQUAL
public static final BinaryOperatorExpression.Operator MODULO_EQUAL
-
DEFAULT
public static final BinaryOperatorExpression.Operator DEFAULT
-
OR
public static final BinaryOperatorExpression.Operator OR
-
AND
public static final BinaryOperatorExpression.Operator AND
-
LESS_EQUAL
public static final BinaryOperatorExpression.Operator LESS_EQUAL
-
LESS
public static final BinaryOperatorExpression.Operator LESS
-
GREATER_EQUAL
public static final BinaryOperatorExpression.Operator GREATER_EQUAL
-
GREATER
public static final BinaryOperatorExpression.Operator GREATER
-
EQUAL
public static final BinaryOperatorExpression.Operator EQUAL
-
NOT_EQUAL
public static final BinaryOperatorExpression.Operator NOT_EQUAL
-
PLUS
public static final BinaryOperatorExpression.Operator PLUS
-
MINUS
public static final BinaryOperatorExpression.Operator MINUS
-
MODULO
public static final BinaryOperatorExpression.Operator MODULO
-
DIVIDE
public static final BinaryOperatorExpression.Operator DIVIDE
-
TIMES
public static final BinaryOperatorExpression.Operator TIMES
-
-
Field Detail
-
image
public final java.lang.String image
-
precedence
public final int precedence
-
associativity
public final BinaryOperatorExpression.Operator.Associativity associativity
-
lookup
private static final java.util.Map<java.lang.String,BinaryOperatorExpression.Operator> lookup
-
-
Constructor Detail
-
Operator
private Operator(java.lang.String image, int precedence, BinaryOperatorExpression.Operator.Associativity associativity)
-
-
Method Detail
-
values
public static BinaryOperatorExpression.Operator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BinaryOperatorExpression.Operator c : BinaryOperatorExpression.Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BinaryOperatorExpression.Operator valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
create
protected abstract Expression create(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.- 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
public static BinaryOperatorExpression.Operator fromImage(java.lang.String image)
-
buildTree
public Expression buildTree(Expression lhs, Expression rhs, Version version)
-
-