public enum DecimalBinaryComparisonOperation extends java.lang.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 java.lang.Boolean |
exec(Decimal left,
Decimal right)
Executes the operation with the operands interpreted.
|
java.lang.Boolean |
execute(Interpreter interpreter,
java.util.List<Expression> args,
boolean variadicArgAsList,
InterpreterStackTrace stackTrace)
Executes the expression.
|
boolean |
execute(Namespace namespace,
java.lang.String operation,
Decimal left,
Decimal right) |
static DecimalBinaryComparisonOperation |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.Boolean execute(Interpreter interpreter, java.util.List<Expression> args, boolean variadicArgAsList, InterpreterStackTrace stackTrace) throws ErrorException
Operationexecute in interface OperationvariadicArgAsList - 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 interpreterErrorExceptionpublic boolean execute(Namespace namespace, java.lang.String operation, Decimal left, Decimal right) throws ErrorException
ErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.