public enum BaseExpressionOperator extends Enum<BaseExpressionOperator>
Enum Constant and Description |
---|
EQUALS |
LIST_OF_CONDITION |
LIST_OF_VALUES |
NOT_EQUALS |
RANGE |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareValues(Object value1,
Object value2)
Support method that perform an equals/compare of given values
|
protected abstract boolean |
eval(String rawValue,
Object resultValue,
Class<?> resultClass,
ClassLoader classLoader) |
protected Object |
evaluateLiteralExpression(String className,
String value,
ClassLoader classLoader) |
static BaseExpressionOperator |
findOperator(String rawValue) |
protected Optional<String> |
match(String value) |
protected String |
removeOperator(String fullString) |
static BaseExpressionOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaseExpressionOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaseExpressionOperator LIST_OF_CONDITION
public static final BaseExpressionOperator LIST_OF_VALUES
public static final BaseExpressionOperator EQUALS
public static final BaseExpressionOperator NOT_EQUALS
public static final BaseExpressionOperator RANGE
public static BaseExpressionOperator[] values()
for (BaseExpressionOperator c : BaseExpressionOperator.values()) System.out.println(c);
public static BaseExpressionOperator 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 static BaseExpressionOperator findOperator(String rawValue)
public static boolean compareValues(Object value1, Object value2)
value1
- value2
- protected abstract boolean eval(String rawValue, Object resultValue, Class<?> resultClass, ClassLoader classLoader)
protected Object evaluateLiteralExpression(String className, String value, ClassLoader classLoader)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.