Example usage for Java org.apache.commons.ognl Ognl fields, constructors, methods, implement or subclass
The text is from its open source code.
Node | compileExpression(OgnlContext context, Object root, String expression) Parses and compiles the given expression using the org.apache.commons.ognl.enhance.OgnlExpressionCompiler returned from org.apache.commons.ognl.OgnlRuntime#getCompiler(OgnlContext) . |
Map | createDefaultContext(Object root, ClassResolver classResolver, TypeConverter converter) Creates and returns a new standard naming context for evaluating an OGNL expression. |
T | getValue(Object tree, Map Evaluates the given OGNL expression tree to extract a value from the given root object. |
T | getValue(ExpressionAccessor expression, OgnlContext context, Object root) Gets the value represented by the given pre-compiled expression on the specified root object. |
T | getValue(String expression, Map Evaluates the given OGNL expression to extract a value from the given root object in a given context |
T | getValue(Object tree, Object root, Class Evaluates the given OGNL expression tree to extract a value from the given root object. |
T | getValue(String expression, Object root, Class Convenience method that combines calls to parseExpression and getValue . |
Object | parseExpression(String expression) Parses the given OGNL expression and returns a tree representation of the expression that can be used by Ognl static methods. |
void | setValue(Object tree, Map Evaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object. |
void | setValue(ExpressionAccessor expression, OgnlContext context, Object root, Object value) Sets the value given using the pre-compiled expression on the specified root object. |
void | setValue(String expression, Map Evaluates the given OGNL expression to insert a value into the object graph rooted at the given root object given the context. |