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