Uses of Class
org.apache.commons.ognl.OgnlContext
Packages that use OgnlContext
-
Uses of OgnlContext in org.apache.commons.ognl
Fields in org.apache.commons.ognl with type parameters of type OgnlContextMethods in org.apache.commons.ognl with parameters of type OgnlContextModifier and TypeMethodDescriptionstatic Object
OgnlRuntime.callAppropriateMethod
(OgnlContext context, Object source, Object target, String methodName, String propertyName, List<Method> methods, Object[] args) static Object
OgnlRuntime.callConstructor
(OgnlContext context, String className, Object[] args) static Object
OgnlRuntime.callMethod
(OgnlContext context, Object target, String methodName, Object[] args) Invokes the specified method against the target object.static Object
OgnlRuntime.callStaticMethod
(OgnlContext context, String className, String methodName, Object[] args) static Class<?>
OgnlRuntime.classForName
(OgnlContext context, String className) ASTBitAnd.coerceToNumeric
(String source, OgnlContext context, Node child) NumericExpression.coerceToNumeric
(String source, OgnlContext context, Node child) static Node
Ognl.compileExpression
(OgnlContext context, Object root, String expression) Parses and compiles the given expression using theOgnlExpressionCompiler
returned fromOgnlRuntime.getCompiler(OgnlContext)
.static void
OgnlRuntime.compileExpression
(OgnlContext context, Node expression, Object root) protected Object
SimpleNode.evaluateGetValueBody
(OgnlContext context, Object source) protected void
SimpleNode.evaluateSetValueBody
(OgnlContext context, Object target, Object value) static Method
OgnlRuntime.getAppropriateMethod
(OgnlContext context, Object source, Object target, String propertyName, List<Method> methods, Object[] args, Object[] actualArgs) Gets the appropriate method to be called for the given target, method name and arguments.static String
OgnlRuntime.getChildSource
(OgnlContext context, Object target, Node child) Attempts to get the java source string represented by the specific child expression via theJavaSource.toGetSourceString(OgnlContext, Object)
interface method.static String
OgnlRuntime.getChildSource
(OgnlContext context, Object target, Node child, boolean forceConversion) Attempts to get the java source string represented by the specific child expression via theJavaSource.toGetSourceString(OgnlContext, Object)
interface method.static OgnlExpressionCompiler
OgnlRuntime.getCompiler
(OgnlContext ognlContext) static Constructor<?>
OgnlRuntime.getConvertedConstructorAndArgs
(OgnlContext context, Object target, List<Constructor<?>> constructors, Object[] args, Object[] newArgs) static Method
OgnlRuntime.getConvertedMethodAndArgs
(OgnlContext context, Object target, String propertyName, List<Method> methods, Object[] args, Object[] newArgs) static Object
OgnlRuntime.getConvertedType
(OgnlContext context, Object target, Member member, String propertyName, Object value, Class<?> type) static boolean
OgnlRuntime.getConvertedTypes
(OgnlContext context, Object target, Member member, String propertyName, Class<?>[] parameterTypes, Object[] args, Object[] newArgs) private Class
ASTMap.getDefaultMapClass
(OgnlContext context) (package private) Class
ASTStaticField.getFieldClass
(OgnlContext context) static Object
OgnlRuntime.getFieldValue
(OgnlContext context, Object target, String propertyName) static Object
OgnlRuntime.getFieldValue
(OgnlContext context, Object target, String propertyName, boolean checkAccessAndExistence) static Method
OgnlRuntime.getGetMethod
(OgnlContext unused, Class<?> targetClass, String propertyName) static Object
OgnlRuntime.getIndexedProperty
(OgnlContext context, Object source, String name, Object index) int
ASTProperty.getIndexedPropertyType
(OgnlContext context, Object source) Returns true if this property is described by an IndexedPropertyDescriptor and that if followed by an index specifier it will call the index get/set methods rather than go through property accessors.static int
OgnlRuntime.getIndexedPropertyType
(OgnlContext context, Class<?> sourceClass, String name) Determines the index property type, if any.private static String
ArrayPropertyAccessor.getIndexString
(OgnlContext context, Object index) static Method
OgnlRuntime.getMethod
(OgnlContext context, Class<?> target, String name, Node[] children, boolean includeStatic) static Object
OgnlRuntime.getMethodValue
(OgnlContext context, Object target, String propertyName) static Object
OgnlRuntime.getMethodValue
(OgnlContext context, Object target, String propertyName, boolean checkAccessAndExistence) If the checkAccessAndExistence flag is true this method will check to see if the method exists and if it is accessible according to the context's MemberAccess.(package private) static String
ASTMethodUtil.getParmString
(OgnlContext context, Class parm, String parmString, Node child, Class valueClass, String endParam) (package private) static String
ASTMethodUtil.getParmString
(OgnlContext context, Object root, Node child, Class prevType) ASTProperty.getProperty
(OgnlContext context, Object source) static Object
OgnlRuntime.getProperty
(OgnlContext context, Object source, Object name) Class<?>
ListPropertyAccessor.getPropertyClass
(OgnlContext context, Object target, Object index) Class<?>
ObjectPropertyAccessor.getPropertyClass
(OgnlContext context, Object target, Object index) static Method
OgnlRuntime.getSetMethod
(OgnlContext context, Class<?> targetClass, String propertyName) ArrayPropertyAccessor.getSourceAccessor
(OgnlContext context, Object target, Object index) ListPropertyAccessor.getSourceAccessor
(OgnlContext context, Object target, Object index) MapPropertyAccessor.getSourceAccessor
(OgnlContext context, Object target, Object index) ObjectPropertyAccessor.getSourceAccessor
(OgnlContext context, Object target, Object index) PropertyAccessor.getSourceAccessor
(OgnlContext context, Object target, Object index) Returns a java string representing the textual method that should be called to access a particular element.private String
ListPropertyAccessor.getSourceBeanMethod
(OgnlContext context, Object target, Object index, String indexStr, boolean isSetter) ArrayPropertyAccessor.getSourceSetter
(OgnlContext context, Object target, Object index) ListPropertyAccessor.getSourceSetter
(OgnlContext context, Object target, Object index) MapPropertyAccessor.getSourceSetter
(OgnlContext context, Object target, Object index) ObjectPropertyAccessor.getSourceSetter
(OgnlContext context, Object target, Object index) PropertyAccessor.getSourceSetter
(OgnlContext context, Object target, Object index) Returns a java string representing the textual method that should be called to set a particular element.private static String
ASTProperty.getSourceString
(OgnlContext context, Node child) static Object
OgnlRuntime.getStaticField
(OgnlContext context, String className, String fieldName) (package private) Object
ASTProperty.getTarget
(OgnlContext context, Object target, String name) Node.getValue
(OgnlContext context, Object source) Extracts the value from the given source object that is appropriate for this node within the given context.static <T> T
Ognl.getValue
(ExpressionAccessor expression, OgnlContext context, Object root) Gets the value represented by the given pre-compiled expression on the specified root object.static <T> T
Ognl.getValue
(ExpressionAccessor expression, OgnlContext context, Object root, Class<T> resultType) Gets the value represented by the given pre-compiled expression on the specified root object.final Object
SimpleNode.getValue
(OgnlContext context, Object source) protected Object
ASTAdd.getValueBody
(OgnlContext context, Object source) protected Object
ASTAnd.getValueBody
(OgnlContext context, Object source) protected Object
ASTAssign.getValueBody
(OgnlContext context, Object source) protected Object
ASTBitAnd.getValueBody
(OgnlContext context, Object source) protected Object
ASTBitNegate.getValueBody
(OgnlContext context, Object source) protected Object
ASTBitOr.getValueBody
(OgnlContext context, Object source) protected Object
ASTChain.getValueBody
(OgnlContext context, Object source) protected Object
ASTConst.getValueBody
(OgnlContext context, Object source) protected Object
ASTCtor.getValueBody
(OgnlContext context, Object source) protected Object
ASTDivide.getValueBody
(OgnlContext context, Object source) protected Object
ASTEq.getValueBody
(OgnlContext context, Object source) protected Object
ASTEval.getValueBody
(OgnlContext context, Object source) protected Object
ASTGreater.getValueBody
(OgnlContext context, Object source) protected Object
ASTGreaterEq.getValueBody
(OgnlContext context, Object source) protected Object
ASTIn.getValueBody
(OgnlContext context, Object source) protected Object
ASTInstanceof.getValueBody
(OgnlContext context, Object source) protected Object
ASTKeyValue.getValueBody
(OgnlContext context, Object source) Returns null because this is a parser construct and does not evaluateprotected Object
ASTLess.getValueBody
(OgnlContext context, Object source) protected Object
ASTLessEq.getValueBody
(OgnlContext context, Object source) protected Object
ASTList.getValueBody
(OgnlContext context, Object source) protected Object
ASTMap.getValueBody
(OgnlContext context, Object source) protected Object
ASTMethod.getValueBody
(OgnlContext context, Object source) protected Object
ASTMultiply.getValueBody
(OgnlContext context, Object source) protected Object
ASTNegate.getValueBody
(OgnlContext context, Object source) protected Object
ASTNot.getValueBody
(OgnlContext context, Object source) protected Object
ASTNotEq.getValueBody
(OgnlContext context, Object source) protected Object
ASTNotIn.getValueBody
(OgnlContext context, Object source) protected Object
ASTOr.getValueBody
(OgnlContext context, Object source) protected Object
ASTProject.getValueBody
(OgnlContext context, Object source) protected Object
ASTProperty.getValueBody
(OgnlContext context, Object source) protected Object
ASTRemainder.getValueBody
(OgnlContext context, Object source) protected Object
ASTRootVarRef.getValueBody
(OgnlContext context, Object source) protected Object
ASTSelect.getValueBody
(OgnlContext context, Object source) protected Object
ASTSelectFirst.getValueBody
(OgnlContext context, Object source) protected Object
ASTSelectLast.getValueBody
(OgnlContext context, Object source) protected Object
ASTSequence.getValueBody
(OgnlContext context, Object source) protected Object
ASTShiftLeft.getValueBody
(OgnlContext context, Object source) protected Object
ASTShiftRight.getValueBody
(OgnlContext context, Object source) protected Object
ASTStaticField.getValueBody
(OgnlContext context, Object source) protected Object
ASTStaticMethod.getValueBody
(OgnlContext context, Object source) protected Object
ASTSubtract.getValueBody
(OgnlContext context, Object source) protected Object
ASTTest.getValueBody
(OgnlContext context, Object source) protected Object
ASTThisVarRef.getValueBody
(OgnlContext context, Object source) protected Object
ASTUnsignedShiftRight.getValueBody
(OgnlContext context, Object source) protected Object
ASTVarRef.getValueBody
(OgnlContext context, Object source) protected Object
ASTXor.getValueBody
(OgnlContext context, Object source) protected abstract Object
SimpleNode.getValueBody
(OgnlContext context, Object source) Subclasses implement this method to do the actual work of extracting the appropriate value from the source object.(package private) static Class
ASTMethodUtil.getValueClass
(OgnlContext context, Object root, Node child) static boolean
OgnlRuntime.hasField
(OgnlContext context, Object target, Class<?> inClass, String propertyName) static boolean
OgnlRuntime.hasGetMethod
(OgnlContext context, Object target, Class<?> targetClass, String propertyName) boolean
ObjectPropertyAccessor.hasGetProperty
(OgnlContext context, Object target, Object oname) static boolean
OgnlRuntime.hasGetProperty
(OgnlContext context, Object target, Object oname) static boolean
OgnlRuntime.hasSetMethod
(OgnlContext context, Object target, Class<?> targetClass, String propertyName) boolean
ObjectPropertyAccessor.hasSetProperty
(OgnlContext context, Object target, Object oname) static boolean
OgnlRuntime.hasSetProperty
(OgnlContext context, Object target, Object oname) boolean
ExpressionNode.isConstant
(OgnlContext context) boolean
SimpleNode.isConstant
(OgnlContext context) boolean
ASTEval.isEvalChain
(OgnlContext context) boolean
SimpleNode.isEvalChain
(OgnlContext context) static boolean
OgnlRuntime.isFieldAccessible
(OgnlContext context, Object target, Class<?> inClass, String propertyName) static boolean
OgnlRuntime.isFieldAccessible
(OgnlContext context, Object target, Field field, String propertyName) static boolean
OgnlRuntime.isInstance
(OgnlContext context, Object value, String className) static boolean
OgnlRuntime.isMethodAccessible
(OgnlContext context, Object target, Method method, String propertyName) boolean
ASTConst.isNodeConstant
(OgnlContext context) boolean
ASTStaticField.isNodeConstant
(OgnlContext context) boolean
ExpressionNode.isNodeConstant
(OgnlContext context) Returns true iff this node is constant without respect to the children.boolean
SimpleNode.isNodeConstant
(OgnlContext context) Returns true iff this node is constant without respect to the children.boolean
ASTProperty.isNodeSimpleProperty
(OgnlContext context) boolean
SimpleNode.isNodeSimpleProperty
(OgnlContext context) boolean
ASTChain.isSimpleNavigationChain
(OgnlContext context) boolean
SimpleNode.isSimpleNavigationChain
(OgnlContext context) boolean
SimpleNode.isSimpleProperty
(OgnlContext context) protected boolean
SimpleNode.lastChild
(OgnlContext context) static boolean
OgnlRuntime.setFieldValue
(OgnlContext context, Object target, String propertyName, Object value) static void
OgnlRuntime.setIndexedProperty
(OgnlContext context, Object source, String name, Object index, Object value) static boolean
OgnlRuntime.setMethodValue
(OgnlContext context, Object target, String propertyName, Object value) static boolean
OgnlRuntime.setMethodValue
(OgnlContext context, Object target, String propertyName, Object value, boolean checkAccessAndExistence) static void
OgnlRuntime.setProperty
(OgnlContext context, Object target, Object name, Object value) void
Node.setValue
(OgnlContext context, Object target, Object value) Sets the given value in the given target as appropriate for this node within the given context.static void
Ognl.setValue
(ExpressionAccessor expression, OgnlContext context, Object root, Object value) Sets the value given using the pre-compiled expression on the specified root object.final void
SimpleNode.setValue
(OgnlContext context, Object target, Object value) protected void
ASTAnd.setValueBody
(OgnlContext context, Object target, Object value) protected void
ASTChain.setValueBody
(OgnlContext context, Object target, Object value) protected void
ASTEval.setValueBody
(OgnlContext context, Object target, Object value) protected void
ASTOr.setValueBody
(OgnlContext context, Object target, Object value) protected void
ASTProperty.setValueBody
(OgnlContext context, Object target, Object value) protected void
ASTRootVarRef.setValueBody
(OgnlContext context, Object target, Object value) protected void
ASTSequence.setValueBody
(OgnlContext context, Object target, Object value) protected void
ASTTest.setValueBody
(OgnlContext context, Object target, Object value) protected void
ASTThisVarRef.setValueBody
(OgnlContext context, Object target, Object value) protected void
ASTVarRef.setValueBody
(OgnlContext context, Object target, Object value) protected void
SimpleNode.setValueBody
(OgnlContext context, Object target, Object value) Subclasses implement this method to do the actual work of setting the appropriate value in the target object.static boolean
OgnlRuntime.shouldConvertNumericTypes
(OgnlContext context) Compares thegetCurrentType()
andgetPreviousType()
class types on the stack to determine if a numeric expression should force object conversion.ASTAdd.toGetSourceString
(OgnlContext context, Object target) ASTAnd.toGetSourceString
(OgnlContext context, Object target) ASTAssign.toGetSourceString
(OgnlContext context, Object target) ASTBitNegate.toGetSourceString
(OgnlContext context, Object target) ASTChain.toGetSourceString
(OgnlContext context, Object target) ASTConst.toGetSourceString
(OgnlContext context, Object target) ASTCtor.toGetSourceString
(OgnlContext context, Object target) ASTEval.toGetSourceString
(OgnlContext context, Object target) ASTIn.toGetSourceString
(OgnlContext context, Object target) ASTInstanceof.toGetSourceString
(OgnlContext context, Object target) ASTList.toGetSourceString
(OgnlContext context, Object target) ASTMap.toGetSourceString
(OgnlContext context, Object target) ASTMethod.toGetSourceString
(OgnlContext context, Object target) ASTNegate.toGetSourceString
(OgnlContext context, Object target) ASTNot.toGetSourceString
(OgnlContext context, Object target) ASTNotIn.toGetSourceString
(OgnlContext context, Object target) ASTOr.toGetSourceString
(OgnlContext context, Object target) ASTProject.toGetSourceString
(OgnlContext context, Object target) ASTProperty.toGetSourceString
(OgnlContext context, Object target) ASTRootVarRef.toGetSourceString
(OgnlContext context, Object target) ASTSelect.toGetSourceString
(OgnlContext context, Object target) ASTSelectFirst.toGetSourceString
(OgnlContext context, Object target) ASTSelectLast.toGetSourceString
(OgnlContext context, Object target) ASTSequence.toGetSourceString
(OgnlContext context, Object target) ASTStaticField.toGetSourceString
(OgnlContext context, Object target) ASTStaticMethod.toGetSourceString
(OgnlContext context, Object target) ASTTest.toGetSourceString
(OgnlContext context, Object target) ASTThisVarRef.toGetSourceString
(OgnlContext context, Object target) ASTUnsignedShiftRight.toGetSourceString
(OgnlContext context, Object target) ASTVarRef.toGetSourceString
(OgnlContext context, Object target) BooleanExpression.toGetSourceString
(OgnlContext context, Object target) Expected to return a java source representation of itself such that it could be turned into a literal java expression to be compiled and executed forExpressionAccessor.get(OgnlContext, Object)
calls.ComparisonExpression.toGetSourceString
(OgnlContext context, Object target) Expected to return a java source representation of itself such that it could be turned into a literal java expression to be compiled and executed forExpressionAccessor.get(OgnlContext, Object)
calls.ExpressionNode.toGetSourceString
(OgnlContext context, Object target) JavaSource.toGetSourceString
(OgnlContext context, Object target) Expected to return a java source representation of itself such that it could be turned into a literal java expression to be compiled and executed forExpressionAccessor.get(OgnlContext, Object)
calls.NumericExpression.toGetSourceString
(OgnlContext context, Object target) Expected to return a java source representation of itself such that it could be turned into a literal java expression to be compiled and executed forExpressionAccessor.get(OgnlContext, Object)
calls.SimpleNode.toGetSourceString
(OgnlContext context, Object target) ASTAnd.toSetSourceString
(OgnlContext context, Object target) ASTAssign.toSetSourceString
(OgnlContext context, Object target) ASTChain.toSetSourceString
(OgnlContext context, Object target) ASTConst.toSetSourceString
(OgnlContext context, Object target) ASTCtor.toSetSourceString
(OgnlContext context, Object target) ASTEval.toSetSourceString
(OgnlContext context, Object target) ASTIn.toSetSourceString
(OgnlContext context, Object target) ASTInstanceof.toSetSourceString
(OgnlContext context, Object target) ASTList.toSetSourceString
(OgnlContext context, Object target) ASTMap.toSetSourceString
(OgnlContext context, Object target) ASTMethod.toSetSourceString
(OgnlContext context, Object target) ASTOr.toSetSourceString
(OgnlContext context, Object target) ASTProject.toSetSourceString
(OgnlContext context, Object target) ASTProperty.toSetSourceString
(OgnlContext context, Object target) ASTRootVarRef.toSetSourceString
(OgnlContext context, Object target) ASTSelect.toSetSourceString
(OgnlContext context, Object target) ASTSelectFirst.toSetSourceString
(OgnlContext context, Object target) ASTSelectLast.toSetSourceString
(OgnlContext context, Object target) ASTSequence.toSetSourceString
(OgnlContext context, Object target) ASTStaticField.toSetSourceString
(OgnlContext context, Object target) ASTStaticMethod.toSetSourceString
(OgnlContext context, Object target) ASTThisVarRef.toSetSourceString
(OgnlContext context, Object target) ASTVarRef.toSetSourceString
(OgnlContext context, Object target) ExpressionNode.toSetSourceString
(OgnlContext context, Object target) JavaSource.toSetSourceString
(OgnlContext context, Object target) Expected to return a java source representation of itself such that it could be turned into a literal java expression to be compiled and executed forExpressionAccessor.get(OgnlContext, Object)
calls.SimpleNode.toSetSourceString
(OgnlContext context, Object target) -
Uses of OgnlContext in org.apache.commons.ognl.enhance
Fields in org.apache.commons.ognl.enhance declared as OgnlContextMethods in org.apache.commons.ognl.enhance with parameters of type OgnlContextModifier and TypeMethodDescriptionstatic void
ExpressionCompiler.addCastString
(OgnlContext context, String cast) Used byExpressionCompiler.castExpression(org.apache.commons.ognl.OgnlContext, org.apache.commons.ognl.Node, String)
to store the cast java source string in to the currentOgnlContext
.ExpressionCompiler.castExpression
(OgnlContext context, Node expression, String body) Used primarily by AST types likeASTChain
wherefoo.bar.id
type references may need to be cast multiple times in order to properly resolve the members in a compiled statement.OgnlExpressionCompiler.castExpression
(OgnlContext context, Node expression, String body) Used primarily by AST types likeASTChain
wherefoo.bar.id
type references may need to be cast multiple times in order to properly resolve the members in a compiled statement.void
ExpressionCompiler.compileExpression
(OgnlContext context, Node expression, Object root) The core method executed to compile a specific expression.void
OgnlExpressionCompiler.compileExpression
(OgnlContext context, Node expression, Object root) The core method executed to compile a specific expression.ExpressionCompiler.createLocalReference
(OgnlContext context, String expression, Class<?> type) Method is used for expressions where multiple inner parameter method calls in generated java source strings cause javassit failures.OgnlExpressionCompiler.createLocalReference
(OgnlContext context, String expression, Class<?> type) Method is used for expressions where multiple inner parameter method calls in generated java source strings cause javassit failures.(package private) void
ExpressionCompiler.createLocalReferences
(OgnlContext context, javassist.ClassPool classPool, javassist.CtClass clazz, javassist.CtClass unused, javassist.CtClass[] params) protected String
ExpressionCompiler.generateGetter
(OgnlContext context, javassist.CtClass newClass, javassist.CtClass objClass, javassist.ClassPool classPool, javassist.CtMethod valueGetter, Node expression, Object root) protected String
ExpressionCompiler.generateSetter
(OgnlContext context, javassist.CtClass newClass, javassist.CtClass objClass, javassist.ClassPool classPool, javassist.CtMethod valueSetter, Node expression, Object root) ExpressionAccessor.get
(OgnlContext context, Object target) Gets the value represented by this expression path, if any.protected EnhancedClassLoader
ExpressionCompiler.getClassLoader
(OgnlContext context) Creates aClassLoader
instance compatible with the javassist classloader and normal OGNL class resolving semantics.protected javassist.ClassPool
ExpressionCompiler.getClassPool
(OgnlContext context, EnhancedClassLoader loader) Gets either a new or existingClassPool
for use in compiling javassist classes.static String
ExpressionCompiler.getRootExpression
(Node expression, Object root, OgnlContext context) Convenience method called by many different property/method resolving AST types to get a root expression resolving string for the given node.Class<?>
ExpressionCompiler.getRootExpressionClass
(Node rootNode, OgnlContext context) For a given root object type returns the base class type to be used in root referenced expressions.Class<?>
OgnlExpressionCompiler.getRootExpressionClass
(Node rootNode, OgnlContext context) For a given root object type returns the base class type to be used in root referenced expressions.void
ExpressionAccessor.set
(OgnlContext context, Object target, Object value) Sets the value represented by this expression path, if possible.Constructors in org.apache.commons.ognl.enhance with parameters of type OgnlContextModifierConstructorDescriptionContextClassLoader
(ClassLoader parentClassLoader, OgnlContext context)