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 class
BinaryOperatorExpression.Operator.Associativity
-
Enum Constant Summary
Enum Constants Enum Constant Description AND
ASSIGN
DEFAULT
DEFAULT_EQUAL
DIVIDE
DIVIDE_EQUAL
EQUAL
GREATER
GREATER_EQUAL
LESS
LESS_EQUAL
MINUS
MINUS_EQUAL
MODULO
MODULO_EQUAL
NOT_EQUAL
OR
PLUS
PLUS_EQUAL
TIMES
TIMES_EQUAL
UDPATE
-
Field Summary
Fields Modifier and Type Field Description BinaryOperatorExpression.Operator.Associativity
associativity
java.lang.Class<? extends BinaryOperatorExpression>
clazz
java.lang.reflect.Constructor<? extends BinaryOperatorExpression>
constructor
java.lang.String
image
private static java.util.Map<java.lang.String,BinaryOperatorExpression.Operator>
lookup
int
precedence
boolean
versionAware
-
Constructor Summary
Constructors Modifier Constructor Description private
Operator(java.lang.String image, int precedence, BinaryOperatorExpression.Operator.Associativity associativity, java.lang.Class<? extends BinaryOperatorExpression> clazz)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
buildTree(Expression lhs, Expression rhs, Version version)
static BinaryOperatorExpression.Operator
fromImage(java.lang.String image)
static BinaryOperatorExpression.Operator
valueOf(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
-
clazz
public final java.lang.Class<? extends BinaryOperatorExpression> clazz
-
constructor
public final java.lang.reflect.Constructor<? extends BinaryOperatorExpression> constructor
-
versionAware
public final boolean versionAware
-
lookup
private static java.util.Map<java.lang.String,BinaryOperatorExpression.Operator> lookup
-
-
Constructor Detail
-
Operator
private Operator(java.lang.String image, int precedence, BinaryOperatorExpression.Operator.Associativity associativity, java.lang.Class<? extends BinaryOperatorExpression> clazz)
-
-
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
-
fromImage
public static BinaryOperatorExpression.Operator fromImage(java.lang.String image)
-
buildTree
public Expression buildTree(Expression lhs, Expression rhs, Version version)
-
-