public interface ExpressionEvaluator
Modifier and Type | Method and Description |
---|---|
boolean |
isConstant(java.lang.String expression)
Returns true if the expression evaluates to a constant or other literal value.
|
java.lang.Object |
read(java.lang.Object target,
java.lang.String expression)
Reads a property of the target, defined by the expression.
|
java.lang.Object |
readCompiled(java.lang.Object target,
java.lang.Object expression)
Reads a property of the target, defined by the (previously compiled) expression.
|
void |
write(java.lang.Object target,
java.lang.String expression,
java.lang.Object value)
Updates a property of the target, defined by the expression.
|
void |
writeCompiled(java.lang.Object target,
java.lang.Object expression,
java.lang.Object value)
Updates a property of the target, defined by the (previously compiled) expression.
|
java.lang.Object read(java.lang.Object target, java.lang.String expression)
org.apache.hivemind.ApplicationRuntimeException
- if the expression can not be parsed, or if some other error occurs during
evaluation of the expression.java.lang.Object readCompiled(java.lang.Object target, java.lang.Object expression)
org.apache.hivemind.ApplicationRuntimeException
- if some other error occurs during evaluation of the expression.void write(java.lang.Object target, java.lang.String expression, java.lang.Object value)
org.apache.hivemind.ApplicationRuntimeException
- if the expression can not be parsed, or if some other error occurs during
evaluation of the expression.void writeCompiled(java.lang.Object target, java.lang.Object expression, java.lang.Object value)
org.apache.hivemind.ApplicationRuntimeException
- if some other error occurs during evaluation of the expression.boolean isConstant(java.lang.String expression)
org.apache.hivemind.ApplicationRuntimeException
- if the expression is not valid