public enum StringComparisonOperation extends java.lang.Enum<StringComparisonOperation> implements Operation
| Enum Constant and Description |
|---|
GT
String greater than.
|
GTE
String greater than or equal.
|
LT
String less than.
|
LTE
String less than or equal.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Boolean |
exec(java.lang.String left,
java.lang.String right)
Executes a string comparison 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 operation,
java.lang.String left,
java.lang.String right) |
static StringComparisonOperation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StringComparisonOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringComparisonOperation LT
public static final StringComparisonOperation LTE
public static final StringComparisonOperation GT
public static final StringComparisonOperation GTE
public static StringComparisonOperation[] values()
for (StringComparisonOperation c : StringComparisonOperation.values()) System.out.println(c);
public static StringComparisonOperation 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 interpreterErrorExceptionpublic java.lang.Boolean execute(Namespace namespace, java.lang.String operation, java.lang.String left, java.lang.String right) throws ErrorException
ErrorExceptionprotected abstract java.lang.Boolean exec(java.lang.String left,
java.lang.String right)
left - right - Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.