|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExpressionEvaluator
Wrapper around the OGNL library.
Method Summary | |
---|---|
OgnlContext |
createContext(Object target)
Creates a default OGNL context object that can be used against the specified object for expression evaluation. |
boolean |
isConstant(Object target,
String expression)
Returns true if the expression evaluates to a constant or other literal value. |
boolean |
isConstant(String expression)
Returns true if the expression evaluates to a constant or other literal value. |
Object |
read(Object target,
ognl.enhance.ExpressionAccessor expression)
Reads a property of the target, defined by the (previously compiled) expression. |
Object |
read(Object target,
String expression)
Reads a property of the target, defined by the expression. |
Object |
readCompiled(Object target,
Object expression)
Reads a property of the target, defined by the (previously compiled) expression. |
void |
write(Object target,
ognl.enhance.ExpressionAccessor expression,
Object value)
Updates a property of the target, defined by the (previously compiled) expression. |
void |
write(Object target,
String expression,
Object value)
Updates a property of the target, defined by the expression. |
void |
writeCompiled(Object target,
Object expression,
Object value)
Updates a property of the target, defined by the (previously compiled) expression. |
Method Detail |
---|
Object read(Object target, String expression)
org.apache.hivemind.ApplicationRuntimeException
- if the expression can not be parsed, or if some other error
occurs during evaluation of the expression.Object readCompiled(Object target, Object expression)
org.apache.hivemind.ApplicationRuntimeException
- if some other error occurs during evaluation of the
expression.Object read(Object target, ognl.enhance.ExpressionAccessor expression)
target
- The object to resolve the expression against.expression
- The compiled expression.
void write(Object target, String expression, 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(Object target, Object expression, Object value)
org.apache.hivemind.ApplicationRuntimeException
- if some other error occurs during evaluation of the
expression.void write(Object target, ognl.enhance.ExpressionAccessor expression, Object value)
target
- The target object to set a value on.expression
- The pre-compiled expression.value
- The value to set.boolean isConstant(String expression)
org.apache.hivemind.ApplicationRuntimeException
- if the expression is not validboolean isConstant(Object target, String expression)
org.apache.hivemind.ApplicationRuntimeException
- if the expression is not validOgnlContext createContext(Object target)
target
- The object to get a context for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |