public enum DecimalBinaryComparisonOperation extends Enum<DecimalBinaryComparisonOperation> implements Operation
Enum Constant and Description |
---|
GT
Decimal greater than.
|
GTE
Decimal greater than or equals.
|
LT
Decimal less than.
|
LTE
Decimal less than or equals.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Boolean |
exec(Decimal left,
Decimal right)
Executes the operation with the operands interpreted.
|
Boolean |
execute(Interpreter interpreter,
List<Expression> args,
boolean variadicArgAsList,
InterpreterStackTrace stackTrace)
Executes the expression.
|
boolean |
execute(Namespace namespace,
String operation,
Decimal left,
Decimal right) |
static DecimalBinaryComparisonOperation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DecimalBinaryComparisonOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DecimalBinaryComparisonOperation LT
public static final DecimalBinaryComparisonOperation LTE
public static final DecimalBinaryComparisonOperation GT
public static final DecimalBinaryComparisonOperation GTE
public static DecimalBinaryComparisonOperation[] values()
for (DecimalBinaryComparisonOperation c : DecimalBinaryComparisonOperation.values()) System.out.println(c);
public static DecimalBinaryComparisonOperation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Boolean execute(Interpreter interpreter, List<Expression> args, boolean variadicArgAsList, InterpreterStackTrace stackTrace) throws ErrorException
Operation
execute
in interface Operation
variadicArgAsList
- if true
, the variadic argument is given as expression
returning a list; if false
, the variadic argument
is given as several individual expressionsstackTrace
- a stack trace passed to the interpreterErrorException
public boolean execute(Namespace namespace, String operation, Decimal left, Decimal right) throws ErrorException
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.