Package com.arcadedb.query.sql.parser
Enum MathExpression.Operator
- java.lang.Object
-
- java.lang.Enum<MathExpression.Operator>
-
- com.arcadedb.query.sql.parser.MathExpression.Operator
-
- All Implemented Interfaces:
Serializable
,Comparable<MathExpression.Operator>
- Enclosing class:
- MathExpression
public static enum MathExpression.Operator extends Enum<MathExpression.Operator>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Number
apply(Double left, Double right)
abstract Number
apply(Float left, Float right)
abstract Number
apply(Integer left, Integer right)
abstract Number
apply(Long left, Long right)
Number
apply(Number a, MathExpression.Operator operation, Number b)
Object
apply(Object left, Object right)
abstract Number
apply(BigDecimal left, BigDecimal right)
int
getPriority()
static MathExpression.Operator
valueOf(String name)
Returns the enum constant of this type with the specified name.static MathExpression.Operator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STAR
public static final MathExpression.Operator STAR
-
SLASH
public static final MathExpression.Operator SLASH
-
REM
public static final MathExpression.Operator REM
-
PLUS
public static final MathExpression.Operator PLUS
-
MINUS
public static final MathExpression.Operator MINUS
-
LSHIFT
public static final MathExpression.Operator LSHIFT
-
RSHIFT
public static final MathExpression.Operator RSHIFT
-
RUNSIGNEDSHIFT
public static final MathExpression.Operator RUNSIGNEDSHIFT
-
BIT_AND
public static final MathExpression.Operator BIT_AND
-
XOR
public static final MathExpression.Operator XOR
-
BIT_OR
public static final MathExpression.Operator BIT_OR
-
NULL_COALESCING
public static final MathExpression.Operator NULL_COALESCING
-
-
Method Detail
-
values
public static MathExpression.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 (MathExpression.Operator c : MathExpression.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 MathExpression.Operator valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
apply
public abstract Number apply(BigDecimal left, BigDecimal right)
-
apply
public Number apply(Number a, MathExpression.Operator operation, Number b)
-
getPriority
public int getPriority()
-
-