public enum LocalDateOperation extends Enum<LocalDateOperation> 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(java.time.LocalDate left,
java.time.LocalDate right)
Executes the operation.
|
Boolean |
execute(Interpreter interpreter,
List<Expression> args,
boolean variadicArgAsList,
InterpreterStackTrace stackTrace)
Executes the expression.
|
Boolean |
execute(Namespace namespace,
String oper,
java.time.LocalDate left,
java.time.LocalDate right) |
static LocalDateOperation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocalDateOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocalDateOperation LT
public static final LocalDateOperation LTE
public static final LocalDateOperation GT
public static final LocalDateOperation GTE
public static LocalDateOperation[] values()
for (LocalDateOperation c : LocalDateOperation.values()) System.out.println(c);
public static LocalDateOperation 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(java.time.LocalDate left, java.time.LocalDate right)
left
- right
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.