Uses of Class
ognl.OgnlException
Packages that use OgnlException
Package
Description
OGNL stands for Object-Graph Navigation Language; it is an expression language
for getting and setting properties of Java objects.
-
Uses of OgnlException in ognl
Subclasses of OgnlException in ognlModifier and TypeClassDescriptionclassException thrown if a malformed OGNL expression is encountered.classException thrown if an OGNL expression is evaluated in the wrong context; the usual case is when an expression that does not end in a property reference is passed tosetValue.classException thrown if a method or constructor call fails.classException thrown if a property is attempted to be extracted from an object that does not have such a property.*Methods in ognl that throw OgnlExceptionModifier and TypeMethodDescriptionstatic ObjectOgnlRuntime.callConstructor(OgnlContext context, String className, 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.static ObjectOgnlRuntime.callStaticMethod(OgnlContext context, String className, String methodName, Object[] args) protected ObjectSimpleNode.evaluateGetValueBody(OgnlContext context, Object source) protected voidSimpleNode.evaluateSetValueBody(OgnlContext context, Object target, Object value) Enumeration<?> ElementsAccessor.getElements(Object target) Returns an iterator over the elements of the given target object.OgnlCache.getElementsAccessor(Class<?> clazz) static ElementsAccessorOgnlRuntime.getElementsAccessor(Class<?> clazz) private Class<?> ASTStaticField.getFieldClass(OgnlContext context) 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 intOgnlRuntime.getIndexedPropertyType(Class<?> sourceClass, String name) Determines the index property type, if any.OgnlCache.getMethodAccessor(Class<?> clazz) static MethodAccessorOgnlRuntime.getMethodAccessor(Class<?> clazz) 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.OgnlCache.getNullHandler(Class<?> clazz) static NullHandlerOgnlRuntime.getNullHandler(Class<?> clazz) 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) OgnlCache.getPropertyAccessor(Class<?> clazz) static PropertyAccessorOgnlRuntime.getPropertyAccessor(Class<?> clazz) static PropertyDescriptorOgnlRuntime.getPropertyDescriptor(Class<?> targetClass, String propertyName) This method returns a PropertyDescriptor for the given class and property name using a Map lookup (using getPropertyDescriptorsMap()).static ObjectOgnlRuntime.getStaticField(OgnlContext context, String className, String fieldName) Method name is getStaticField(), but actually behaves more like "getStaticFieldValue()".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 ObjectEvaluates the given OGNL expression tree to extract a value from the given root object.static ObjectEvaluates the given OGNL expression tree to extract a value from the given root object.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 ObjectConvenience method that combines calls toparseExpressionandgetValue.static ObjectConvenience method that combines calls toparseExpressionandgetValue.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 contextfinal 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.booleanObjectPropertyAccessor.hasGetProperty(OgnlContext context, Object target, Object oname) booleanObjectPropertyAccessor.hasSetProperty(OgnlContext context, Object target, Object oname) static booleanbooleanSimpleNode.isChain(OgnlContext context) booleanExpressionNode.isConstant(OgnlContext context) static booleanOgnl.isConstant(Object tree) Same asOgnl.isConstant(String, OgnlContext)- only theMapcontext is created for you.static booleanOgnl.isConstant(Object tree, OgnlContext context) Checks if the specifiedNodeinstance represents a constant expression.static booleanOgnl.isConstant(String expression) Same asOgnl.isConstant(String, OgnlContext)- only theMapinstance is created for you.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.isInstance(OgnlContext context, Object value, String className) 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) booleanASTNegate.isOperation(OgnlContext context) booleanExpressionNode.isOperation(OgnlContext context) booleanSimpleNode.isOperation(OgnlContext context) booleanSimpleNode.isSequence(OgnlContext context) booleanSimpleNode.isSimpleMethod(OgnlContext context) booleanASTChain.isSimpleNavigationChain(OgnlContext context) static booleanOgnl.isSimpleNavigationChain(Object tree) static booleanOgnl.isSimpleNavigationChain(Object tree, OgnlContext context) static booleanOgnl.isSimpleNavigationChain(String expression) static booleanOgnl.isSimpleNavigationChain(String expression, OgnlContext context) booleanSimpleNode.isSimpleNavigationChain(OgnlContext context) static booleanOgnl.isSimpleProperty(Object tree) static booleanOgnl.isSimpleProperty(Object tree, OgnlContext context) static booleanOgnl.isSimpleProperty(String expression) static booleanOgnl.isSimpleProperty(String expression, OgnlContext context) booleanSimpleNode.isSimpleProperty(OgnlContext context) static ObjectOgnl.parseExpression(String expression) Parses the given OGNL expression and returns a tree representation of the expression that can be used byOgnlstatic methods.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.voidNode.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 voidEvaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object.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 voidConvenience method that combines calls toparseExpressionandsetValue.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.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. -
Uses of OgnlException in ognl.internal.entry
Methods in ognl.internal.entry that throw OgnlExceptionModifier and TypeMethodDescription(package private) static MethodPropertyDescriptorCacheEntryFactory.findClosestMatchingMethod(Class<?> targetClass, Method method, String propertyName, Class<?> propertyType, boolean isReadMethod) private static voidPropertyDescriptorCacheEntryFactory.findObjectIndexedPropertyDescriptors(Class<?> targetClass, Map<String, PropertyDescriptor> intoMap)
OgnlRuntime.callMethod(OgnlContext, Object, String, Object[])instead.