public enum EnumerationOperation extends Enum<EnumerationOperation> implements Operation
Enum Constant and Description |
---|
GT
Date greater than.
|
GTE
Date greater than or equal.
|
LT
Enumeration less than.
|
LTE
Enumeration less than or equal.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Boolean |
exec(EnumerationImpl left,
EnumerationImpl right)
Executes the operation.
|
Boolean |
execute(Interpreter interpreter,
List<Expression> args,
boolean variadicArgAsList,
InterpreterStackTrace stackTrace)
Executes the expression.
|
Boolean |
execute(Namespace namespace,
String operation,
EnumerationImpl left,
EnumerationImpl right) |
static EnumerationOperation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumerationOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumerationOperation LT
public static final EnumerationOperation LTE
public static final EnumerationOperation GT
public static final EnumerationOperation GTE
public static EnumerationOperation[] values()
for (EnumerationOperation c : EnumerationOperation.values()) System.out.println(c);
public static EnumerationOperation 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, EnumerationImpl left, EnumerationImpl right) throws ErrorException
ErrorException
protected abstract Boolean exec(EnumerationImpl left, EnumerationImpl right)
left
- right
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.