Uses of Class
ognl.OgnlContext
Packages that use OgnlContext
Package
Description
OGNL stands for Object-Graph Navigation Language; it is an expression language
for getting and setting properties of Java objects.
-
Uses of OgnlContext in ognl
Methods in ognl that return OgnlContextModifier and TypeMethodDescriptionstatic OgnlContextOgnl.addDefaultContext(Object root, ClassResolver classResolver, OgnlContext context) Appends the standard naming context for evaluating an OGNL expression into the context given so that cached maps can be used as a context.static OgnlContextOgnl.addDefaultContext(Object root, ClassResolver classResolver, TypeConverter converter, OgnlContext context) Appends the standard naming context for evaluating an OGNL expression into the context given so that cached maps can be used as a context.static OgnlContextOgnl.addDefaultContext(Object root, MemberAccess memberAccess, ClassResolver classResolver, TypeConverter converter, OgnlContext initialContext) Appends the standard naming context for evaluating an OGNL expression into the context given so that cached maps can be used as a context.static OgnlContextOgnl.addDefaultContext(Object root, OgnlContext context) Appends the standard naming context for evaluating an OGNL expression into the context given so that cached maps can be used as a context.static OgnlContextOgnl.createDefaultContext(Object root) Creates and returns a new standard naming context for evaluating an OGNL expression.static OgnlContextOgnl.createDefaultContext(Object root, Map<String, Object> values) Creates and returns a new standard naming context for evaluating an OGNL expression.static OgnlContextOgnl.createDefaultContext(Object root, ClassResolver classResolver) Creates and returns a new standard naming context for evaluating an OGNL expression.static OgnlContextOgnl.createDefaultContext(Object root, ClassResolver classResolver, TypeConverter converter) Creates and returns a new standard naming context for evaluating an OGNL expression.static OgnlContextOgnl.createDefaultContext(Object root, MemberAccess memberAccess) Creates and returns a new standard naming context for evaluating an OGNL expression.static OgnlContextOgnl.createDefaultContext(Object root, MemberAccess memberAccess, ClassResolver classResolver, TypeConverter converter) Creates and returns a new standard naming context for evaluating an OGNL expression.OgnlContext.withValues(Map<String, Object> values) Similar tosetValues(Map)but returns the current instance ofOgnlContextMethods in ognl with parameters of type OgnlContextModifier and TypeMethodDescriptionprivate static MethodOgnlRuntime._getSetMethod(OgnlContext context, Class<?> targetClass, String propertyName) Returns a qualifying set (setter) method, if one is available for the given targetClass and propertyName.static OgnlContextOgnl.addDefaultContext(Object root, ClassResolver classResolver, OgnlContext context) Appends the standard naming context for evaluating an OGNL expression into the context given so that cached maps can be used as a context.static OgnlContextOgnl.addDefaultContext(Object root, ClassResolver classResolver, TypeConverter converter, OgnlContext context) Appends the standard naming context for evaluating an OGNL expression into the context given so that cached maps can be used as a context.static OgnlContextOgnl.addDefaultContext(Object root, MemberAccess memberAccess, ClassResolver classResolver, TypeConverter converter, OgnlContext initialContext) Appends the standard naming context for evaluating an OGNL expression into the context given so that cached maps can be used as a context.static OgnlContextOgnl.addDefaultContext(Object root, OgnlContext context) Appends the standard naming context for evaluating an OGNL expression into the context given so that cached maps can be used as a context.static ObjectOgnlRuntime.callAppropriateMethod(OgnlContext context, Object source, Object target, String methodName, String propertyName, List<Method> methods, Object[] args) static ObjectOgnlRuntime.callConstructor(OgnlContext context, String className, Object[] args) MethodAccessor.callMethod(OgnlContext context, Object target, String methodName, Object[] args) Calls the method named with the arguments given.ObjectMethodAccessor.callMethod(OgnlContext context, Object target, String methodName, Object[] args) static ObjectOgnlRuntime.callMethod(OgnlContext context, Object target, String methodName, Object[] args) Invokes the specified method against the target object.static ObjectOgnlRuntime.callMethod(OgnlContext context, Object target, String methodName, String propertyName, Object[] args) Deprecated.MethodAccessor.callStaticMethod(OgnlContext context, Class<?> targetClass, String methodName, Object[] args) Calls the static method named with the arguments given on the class given.ObjectMethodAccessor.callStaticMethod(OgnlContext context, Class<?> targetClass, String methodName, Object[] args) static ObjectOgnlRuntime.callStaticMethod(OgnlContext context, String className, String methodName, Object[] args) <T> Class<T> ClassResolver.classForName(String className, OgnlContext context) <T> Class<T> DefaultClassResolver.classForName(String className, OgnlContext context) static <T> Class<T> OgnlRuntime.classForName(OgnlContext context, String className) ASTBitAnd.coerceToNumeric(String source, OgnlContext context, Node child) NumericExpression.coerceToNumeric(String source, OgnlContext context, Node child) static NodeOgnl.compileExpression(OgnlContext context, Object root, String expression) Parses and compiles the given expression using theOgnlExpressionCompilerreturned fromOgnlRuntime.getCompiler().static voidOgnlRuntime.compileExpression(OgnlContext context, Node expression, Object root) DefaultTypeConverter.convertValue(OgnlContext context, Object value, Class<?> toType) DefaultTypeConverter.convertValue(OgnlContext context, Object target, Member member, String propertyName, Object value, Class<?> toType) TypeConverter.convertValue(OgnlContext context, Object target, Member member, String propertyName, Object value, Class<?> toType) Converts the given value to a given type.protected ObjectSimpleNode.evaluateGetValueBody(OgnlContext context, Object source) protected voidSimpleNode.evaluateSetValueBody(OgnlContext context, Object target, Object value) static MethodOgnlRuntime.getAppropriateMethod(OgnlContext context, Object source, Object target, String propertyName, String methodName, List<Method> methods, Object[] args, Object[] actualArgs) Gets the appropriate method to be called for the given target, method name and arguments.private static Class<?>[]ASTMethod.getChildrenClasses(OgnlContext context, Node[] _children) static StringOgnlRuntime.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.private static Class<?> ASTMethod.getClassMatchingAllChildren(OgnlContext context, Node[] _children) static Constructor<?> OgnlRuntime.getConvertedConstructorAndArgs(OgnlContext context, Object target, List<Constructor<?>> constructors, Object[] args, Object[] newArgs) static MethodOgnlRuntime.getConvertedMethodAndArgs(OgnlContext context, Object target, String propertyName, List<Method> methods, Object[] args, Object[] newArgs) static ObjectOgnlRuntime.getConvertedType(OgnlContext context, Object target, Member member, String propertyName, Object value, Class<?> type) static booleanOgnlRuntime.getConvertedTypes(OgnlContext context, Object target, Member member, String propertyName, Class<?>[] parameterTypes, Object[] args, Object[] newArgs) (package private) Class<?> ASTCtor.getCreatedClass(OgnlContext context) private Class<?> ASTStaticField.getFieldClass(OgnlContext context) static ObjectOgnlRuntime.getFieldValue(OgnlContext context, Object target, String propertyName) Deprecated.static ObjectOgnlRuntime.getFieldValue(OgnlContext context, Object target, String propertyName, boolean checkAccessAndExistence) static ObjectOgnlRuntime.getIndexedProperty(OgnlContext context, Object source, String name, Object index) intASTProperty.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 EvaluationOgnl.getLastEvaluation(OgnlContext context) Gets the lastEvaluationexecuted on the given context.static MethodOgnlRuntime.getMethod(OgnlContext context, Class<?> target, String name, Node[] children, boolean includeStatic) static ObjectOgnlRuntime.getMethodValue(OgnlContext context, Object target, String propertyName) Deprecated.static ObjectOgnlRuntime.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.ObjectPropertyAccessor.getPossibleProperty(OgnlContext context, Object target, String name) Returns OgnlRuntime.NotFound if the property does not exist.ArrayPropertyAccessor.getProperty(OgnlContext context, Object target, Object name) ASTProperty.getProperty(OgnlContext context, Object source) EnumerationPropertyAccessor.getProperty(OgnlContext context, Object target, Object name) IteratorPropertyAccessor.getProperty(OgnlContext context, Object target, Object name) ListPropertyAccessor.getProperty(OgnlContext context, Object target, Object name) MapPropertyAccessor.getProperty(OgnlContext context, Object target, Object name) ObjectPropertyAccessor.getProperty(OgnlContext context, Object target, Object oname) static ObjectOgnlRuntime.getProperty(OgnlContext context, Object source, Object name) PropertyAccessor.getProperty(OgnlContext context, Object target, Object name) Extracts and returns the property of the given name from the given target object.SetPropertyAccessor.getProperty(OgnlContext context, Object target, Object name) Class<?> ListPropertyAccessor.getPropertyClass(OgnlContext context, Object target, Object index) Class<?> ObjectPropertyAccessor.getPropertyClass(OgnlContext context, Object target, Object index) static ObjectOgnl.getRoot(OgnlContext context) Gets the stored root object for the given context - if any.static MethodOgnlRuntime.getSetMethod(OgnlContext context, Class<?> targetClass, String propertyName) cache set methods methodArrayPropertyAccessor.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.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.static ObjectOgnlRuntime.getStaticField(OgnlContext context, String className, String fieldName) Method name is getStaticField(), but actually behaves more like "getStaticFieldValue()".static TypeConverterOgnl.getTypeConverter(OgnlContext context) Gets the currently configuredTypeConverterfor the given context - if any.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 ObjectOgnl.getValue(Object tree, OgnlContext context, Object root) Evaluates the given OGNL expression tree to extract a value from the given root object.static ObjectOgnl.getValue(Object tree, OgnlContext context, Object root, Class<?> resultType) Evaluates the given OGNL expression tree to extract a value from the given root object.static ObjectOgnl.getValue(String expression, OgnlContext context, Object root) Evaluates the given OGNL expression to extract a value from the given root object in a given contextstatic ObjectOgnl.getValue(String expression, OgnlContext context, Object root, Class<?> resultType) Evaluates the given OGNL expression to extract a value from the given root object in a given contextstatic ObjectOgnl.getValue(ExpressionAccessor expression, OgnlContext context, Object root) Gets the value represented by the given pre-compiled expression on the specified root object.static ObjectOgnl.getValue(ExpressionAccessor expression, OgnlContext context, Object root, Class<?> resultType) Gets the value represented by the given pre-compiled expression on the specified root object.final ObjectSimpleNode.getValue(OgnlContext context, Object source) protected ObjectASTAdd.getValueBody(OgnlContext context, Object source) protected ObjectASTAnd.getValueBody(OgnlContext context, Object source) protected ObjectASTAssign.getValueBody(OgnlContext context, Object source) protected ObjectASTBitAnd.getValueBody(OgnlContext context, Object source) protected ObjectASTBitNegate.getValueBody(OgnlContext context, Object source) protected ObjectASTBitOr.getValueBody(OgnlContext context, Object source) protected ObjectASTChain.getValueBody(OgnlContext context, Object source) protected ObjectASTConst.getValueBody(OgnlContext context, Object source) protected ObjectASTCtor.getValueBody(OgnlContext context, Object source) protected ObjectASTDivide.getValueBody(OgnlContext context, Object source) protected ObjectASTEq.getValueBody(OgnlContext context, Object source) protected ObjectASTEval.getValueBody(OgnlContext context, Object source) protected ObjectASTGreater.getValueBody(OgnlContext context, Object source) protected ObjectASTGreaterEq.getValueBody(OgnlContext context, Object source) protected ObjectASTIn.getValueBody(OgnlContext context, Object source) protected ObjectASTInstanceof.getValueBody(OgnlContext context, Object source) protected ObjectASTKeyValue.getValueBody(OgnlContext context, Object source) Returns null because this is a parser construct and does not evaluateprotected ObjectASTLess.getValueBody(OgnlContext context, Object source) protected ObjectASTLessEq.getValueBody(OgnlContext context, Object source) protected ObjectASTList.getValueBody(OgnlContext context, Object source) protected ObjectASTMap.getValueBody(OgnlContext context, Object source) protected ObjectASTMethod.getValueBody(OgnlContext context, Object source) protected ObjectASTMultiply.getValueBody(OgnlContext context, Object source) protected ObjectASTNegate.getValueBody(OgnlContext context, Object source) protected ObjectASTNot.getValueBody(OgnlContext context, Object source) protected ObjectASTNotEq.getValueBody(OgnlContext context, Object source) protected ObjectASTNotIn.getValueBody(OgnlContext context, Object source) protected ObjectASTOr.getValueBody(OgnlContext context, Object source) protected ObjectASTProject.getValueBody(OgnlContext context, Object source) protected ObjectASTProperty.getValueBody(OgnlContext context, Object source) protected ObjectASTRemainder.getValueBody(OgnlContext context, Object source) protected ObjectASTRootVarRef.getValueBody(OgnlContext context, Object source) protected ObjectASTSelect.getValueBody(OgnlContext context, Object source) protected ObjectASTSelectFirst.getValueBody(OgnlContext context, Object source) protected ObjectASTSelectLast.getValueBody(OgnlContext context, Object source) protected ObjectASTSequence.getValueBody(OgnlContext context, Object source) protected ObjectASTShiftLeft.getValueBody(OgnlContext context, Object source) protected ObjectASTShiftRight.getValueBody(OgnlContext context, Object source) protected ObjectASTStaticField.getValueBody(OgnlContext context, Object source) protected ObjectASTStaticMethod.getValueBody(OgnlContext context, Object source) protected ObjectASTSubtract.getValueBody(OgnlContext context, Object source) protected ObjectASTTest.getValueBody(OgnlContext context, Object source) protected ObjectASTThisVarRef.getValueBody(OgnlContext context, Object source) protected ObjectASTUnsignedShiftRight.getValueBody(OgnlContext context, Object source) protected ObjectASTVarRef.getValueBody(OgnlContext context, Object source) protected ObjectASTXor.getValueBody(OgnlContext context, Object source) protected abstract ObjectSimpleNode.getValueBody(OgnlContext context, Object source) Subclasses implement this method to do the actual work of extracting the appropriate value from the source object.static booleanOgnlRuntime.hasField(OgnlContext context, Object target, Class<?> inClass, String propertyName) static booleanOgnlRuntime.hasGetMethod(OgnlContext context, Object target, Class<?> targetClass, String propertyName) booleanObjectPropertyAccessor.hasGetProperty(OgnlContext context, Object target, Object oname) static booleanOgnlRuntime.hasGetProperty(OgnlContext context, Object target, Object oname) static booleanOgnlRuntime.hasSetMethod(OgnlContext context, Object target, Class<?> targetClass, String propertyName) booleanObjectPropertyAccessor.hasSetProperty(OgnlContext context, Object target, Object oname) static booleanOgnlRuntime.hasSetProperty(OgnlContext context, Object target, Object oname) booleanMemberAccess.isAccessible(OgnlContext context, Object target, Member member, String propertyName) Returns true if the given member is accessible or can be made accessible by this object.private static booleanOgnlRuntime.isAccessible(OgnlContext context, Object target, Member member, String propertyName) Returns true if the given member is accessible or can be made accessible by this object.booleanASTChain.isChain(OgnlContext context) booleanSimpleNode.isChain(OgnlContext context) booleanExpressionNode.isConstant(OgnlContext context) static booleanOgnl.isConstant(Object tree, OgnlContext context) Checks if the specifiedNodeinstance represents a constant expression.static booleanOgnl.isConstant(String expression, OgnlContext context) Checks if the specified expression represents a constant expression.booleanSimpleNode.isConstant(OgnlContext context) booleanASTEval.isEvalChain(OgnlContext context) booleanSimpleNode.isEvalChain(OgnlContext context) static booleanOgnlRuntime.isFieldAccessible(OgnlContext context, Object target, Class<?> inClass, String propertyName) static booleanOgnlRuntime.isFieldAccessible(OgnlContext context, Object target, Field field, String propertyName) static booleanOgnlRuntime.isInstance(OgnlContext context, Object value, String className) static booleanOgnlRuntime.isMethodAccessible(OgnlContext context, Object target, Method method, String propertyName) booleanASTConst.isNodeConstant(OgnlContext context) booleanASTStaticField.isNodeConstant(OgnlContext context) booleanExpressionNode.isNodeConstant(OgnlContext context) Returns true iff this node is constant without respect to the children.booleanSimpleNode.isNodeConstant(OgnlContext context) Returns true iff this node is constant without respect to the children.booleanASTProperty.isNodeSimpleProperty(OgnlContext context) booleanSimpleNode.isNodeSimpleProperty(OgnlContext context) booleanASTAssign.isOperation(OgnlContext context) booleanASTNegate.isOperation(OgnlContext context) booleanExpressionNode.isOperation(OgnlContext context) booleanSimpleNode.isOperation(OgnlContext context) booleanASTSequence.isSequence(OgnlContext context) booleanSimpleNode.isSequence(OgnlContext context) booleanASTMethod.isSimpleMethod(OgnlContext context) booleanSimpleNode.isSimpleMethod(OgnlContext context) booleanASTChain.isSimpleNavigationChain(OgnlContext context) static booleanOgnl.isSimpleNavigationChain(Object tree, OgnlContext context) static booleanOgnl.isSimpleNavigationChain(String expression, OgnlContext context) booleanSimpleNode.isSimpleNavigationChain(OgnlContext context) static booleanOgnl.isSimpleProperty(Object tree, OgnlContext context) static booleanOgnl.isSimpleProperty(String expression, OgnlContext context) booleanSimpleNode.isSimpleProperty(OgnlContext context) protected booleanSimpleNode.lastChild(OgnlContext context) NullHandler.nullMethodResult(OgnlContext context, Object target, String methodName, Object[] args) Method called on target returned null.ObjectNullHandler.nullMethodResult(OgnlContext context, Object target, String methodName, Object[] args) NullHandler.nullPropertyValue(OgnlContext context, Object target, Object property) Property in target evaluated to null.ObjectNullHandler.nullPropertyValue(OgnlContext context, Object target, Object property) voidAbstractMemberAccess.restore(OgnlContext context, Object target, Member member, String propertyName, Object state) voidMemberAccess.restore(OgnlContext context, Object target, Member member, String propertyName, Object state) Restores the member from the previous setup call.static booleanOgnlRuntime.setFieldValue(OgnlContext context, Object target, String propertyName, Object value) Deprecated.static booleanOgnlRuntime.setFieldValue(OgnlContext context, Object target, String propertyName, Object value, boolean checkAccessAndExistence) static voidOgnlRuntime.setIndexedProperty(OgnlContext context, Object source, String name, Object index, Object value) static booleanOgnlRuntime.setMethodValue(OgnlContext context, Object target, String propertyName, Object value) Deprecated.static booleanOgnlRuntime.setMethodValue(OgnlContext context, Object target, String propertyName, Object value, boolean checkAccessAndExistence) ObjectPropertyAccessor.setPossibleProperty(OgnlContext context, Object target, String name, Object value) Returns OgnlRuntime.NotFound if the property does not exist.voidArrayPropertyAccessor.setProperty(OgnlContext context, Object target, Object name, Object value) voidEnumerationPropertyAccessor.setProperty(OgnlContext context, Object target, Object name, Object value) voidIteratorPropertyAccessor.setProperty(OgnlContext context, Object target, Object name, Object value) voidListPropertyAccessor.setProperty(OgnlContext context, Object target, Object name, Object value) voidMapPropertyAccessor.setProperty(OgnlContext context, Object target, Object name, Object value) voidObjectPropertyAccessor.setProperty(OgnlContext context, Object target, Object oname, Object value) static voidOgnlRuntime.setProperty(OgnlContext context, Object target, Object name, Object value) voidPropertyAccessor.setProperty(OgnlContext context, Object target, Object name, Object value) Sets the value of the property of the given name in the given target object.static voidOgnl.setRoot(OgnlContext context, Object root) Sets the root object to use for all expressions in the given context - doesn't necessarily replace root object instances explicitly passed in to other expression resolving methods on this class.AbstractMemberAccess.setup(OgnlContext context, Object target, Member member, String propertyName) MemberAccess.setup(OgnlContext context, Object target, Member member, String propertyName) Sets the member up for accessibilityvoidNode.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 voidOgnl.setValue(Object tree, OgnlContext context, Object root, Object value) Evaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object.static voidOgnl.setValue(String expression, OgnlContext context, Object root, Object value) Evaluates the given OGNL expression to insert a value into the object graph rooted at the given root object given the context.static voidOgnl.setValue(ExpressionAccessor expression, OgnlContext context, Object root, Object value) Sets the value given using the pre-compiled expression on the specified root object.final voidSimpleNode.setValue(OgnlContext context, Object target, Object value) protected voidASTAnd.setValueBody(OgnlContext context, Object target, Object value) protected voidASTChain.setValueBody(OgnlContext context, Object target, Object value) protected voidASTEval.setValueBody(OgnlContext context, Object target, Object value) protected voidASTOr.setValueBody(OgnlContext context, Object target, Object value) protected voidASTProperty.setValueBody(OgnlContext context, Object target, Object value) protected voidASTRootVarRef.setValueBody(OgnlContext context, Object target, Object value) protected voidASTSequence.setValueBody(OgnlContext context, Object target, Object value) protected voidASTTest.setValueBody(OgnlContext context, Object target, Object value) protected voidASTThisVarRef.setValueBody(OgnlContext context, Object target, Object value) protected voidASTVarRef.setValueBody(OgnlContext context, Object target, Object value) protected voidSimpleNode.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 booleanOgnlRuntime.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) ComparisonExpression.toGetSourceString(OgnlContext context, Object target) 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) 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) Constructors in ognl with parameters of type OgnlContextModifierConstructorDescriptionOgnlContext(MemberAccess memberAccess, ClassResolver classResolver, TypeConverter typeConverter, OgnlContext initialContext) Constructs a new OgnlContext with the given member access, class resolver, type converter and values. -
Uses of OgnlContext in ognl.enhance
Fields in ognl.enhance declared as OgnlContextMethods in ognl.enhance with parameters of type OgnlContextModifier and TypeMethodDescriptionstatic voidExpressionCompiler.addCastString(OgnlContext context, String cast) Used byExpressionCompiler.castExpression(OgnlContext, Node, String)to store the cast java source string in to the currentOgnlContext.ExpressionCompiler.castExpression(OgnlContext context, Node expression, String body) OgnlExpressionCompiler.castExpression(OgnlContext context, Node expression, String body) Used primarily by AST types likeASTChainwherefoo.bar.idtype references may need to be cast multiple times in order to properly resolve the members in a compiled statement.voidExpressionCompiler.compileExpression(OgnlContext context, Node expression, Object root) voidOgnlExpressionCompiler.compileExpression(OgnlContext context, Node expression, Object root) The core method executed to compile a specific expression.ExpressionCompiler.createLocalReference(OgnlContext context, String expression, Class<?> type) 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.private voidExpressionCompiler.createLocalReferences(OgnlContext context, javassist.ClassPool pool, javassist.CtClass clazz, javassist.CtClass[] params) protected StringExpressionCompiler.generateGetter(OgnlContext context, javassist.CtClass newClass, javassist.ClassPool pool, javassist.CtMethod valueGetter, Node expression, Object root) protected StringExpressionCompiler.generateSetter(OgnlContext context, javassist.CtClass newClass, javassist.ClassPool pool, javassist.CtMethod valueSetter, Node expression, Object root) ExpressionAccessor.get(OgnlContext context, Object target) Gets the value represented by this expression path, if any.protected EnhancedClassLoaderExpressionCompiler.getClassLoader(OgnlContext context) Creates aClassLoaderinstance compatible with the javassist classloader and normal OGNL class resolving semantics.protected javassist.ClassPoolExpressionCompiler.getClassPool(OgnlContext context, EnhancedClassLoader loader) Gets either a new or existingClassPoolfor use in compiling javassist classes.static StringExpressionCompiler.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) 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.voidExpressionAccessor.set(OgnlContext context, Object target, Object value) Sets the value represented by this expression path, if possible.Constructors in ognl.enhance with parameters of type OgnlContextModifierConstructorDescriptionContextClassLoader(ClassLoader parentClassLoader, OgnlContext context)
OgnlRuntime.callMethod(OgnlContext, Object, String, Object[])instead.