public enum StringComparisonOperation extends 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 Boolean |
exec(String left,
String right)
Executes a string comparison operation.
|
Boolean |
execute(Interpreter interpreter,
List<Expression> args,
boolean variadicArgAsList,
InterpreterStackTrace stackTrace)
Executes the expression.
|
Boolean |
execute(Namespace namespace,
String operation,
String left,
String right) |
static StringComparisonOperation |
valueOf(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(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
public Boolean execute(Namespace namespace, String operation, String left, String right) throws ErrorException
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.