public enum DateOperation extends java.lang.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 java.lang.Boolean |
exec(java.util.Date left,
java.util.Date 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.util.Date left,
java.util.Date right) |
static DateOperation |
valueOf(java.lang.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(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
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 java.lang.Boolean exec(java.util.Date left, java.util.Date right)
left
- right
- public java.lang.Boolean execute(Namespace namespace, java.lang.String oper, java.util.Date left, java.util.Date right)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.