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