Uses of Class
org.apache.commons.ognl.OgnlException
Packages that use OgnlException
-
Uses of OgnlException in org.apache.commons.ognl
Subclasses of OgnlException in org.apache.commons.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 org.apache.commons.ognl that throw OgnlExceptionModifier and TypeMethodDescription<R,P> R ASTAdd.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTAnd.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTAssign.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTBitAnd.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTBitNegate.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTBitOr.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTChain.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTConst.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTCtor.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTDivide.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTEq.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTEval.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTGreater.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTGreaterEq.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTIn.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTInstanceof.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTKeyValue.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTLess.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTLessEq.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTList.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTMap.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTMethod.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTMultiply.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTNegate.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTNot.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTNotEq.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTNotIn.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTOr.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTProject.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTProperty.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTRemainder.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTRootVarRef.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTSelect.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTSelectFirst.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTSelectLast.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTSequence.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTShiftLeft.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTShiftRight.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTStaticField.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTStaticMethod.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTSubtract.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTTest.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTThisVarRef.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTUnsignedShiftRight.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTVarRef.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R ASTXor.accept(NodeVisitor<? extends R, ? super P> visitor, P data) <R,P> R Node.accept(NodeVisitor<? extends R, ? super P> visitor, P data) Supports the Visitor pattern.static ObjectOgnlRuntime.callConstructor(OgnlContext context, String className, Object[] args) MethodAccessor.callMethod(Map<String, Object> context, Object target, String methodName, Object[] args) Calls the method named with the arguments given.static ObjectOgnlRuntime.callMethod(OgnlContext context, Object target, String methodName, Object[] args) Invokes the specified method against the target object.MethodAccessor.callStaticMethod(Map<String, Object> context, Class<?> targetClass, String methodName, Object[] args) Calls the static method named with the arguments given on the class given.static ObjectOgnlRuntime.callStaticMethod(OgnlContext context, String className, String methodName, Object[] args) static <T> ObjectOgnlOps.convertValue(boolean value, Class<T> toType) static <T> ObjectOgnlOps.convertValue(boolean value, Class<T> toType, boolean preventNull) static <T> ObjectOgnlOps.convertValue(byte value, Class<T> toType) static <T> ObjectOgnlOps.convertValue(byte value, Class<T> toType, boolean preventNull) static <T> ObjectOgnlOps.convertValue(char value, Class<T> toType) static <T> ObjectOgnlOps.convertValue(char value, Class<T> toType, boolean preventNull) static <T> ObjectOgnlOps.convertValue(double value, Class<T> toType) static <T> ObjectOgnlOps.convertValue(double value, Class<T> toType, boolean preventNull) static <T> ObjectOgnlOps.convertValue(float value, Class<T> toType) static <T> ObjectOgnlOps.convertValue(float value, Class<T> toType, boolean preventNull) static <T> ObjectOgnlOps.convertValue(int value, Class<T> toType) static <T> ObjectOgnlOps.convertValue(int value, Class<T> toType, boolean preventNull) static <T> ObjectOgnlOps.convertValue(long value, Class<T> toType) static <T> ObjectOgnlOps.convertValue(long value, Class<T> toType, boolean preventNull) protected ObjectSimpleNode.evaluateGetValueBody(OgnlContext context, Object source) protected voidSimpleNode.evaluateSetValueBody(OgnlContext context, Object target, Object value) 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.static StringOgnlRuntime.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.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) (package private) ClassASTStaticField.getFieldClass(OgnlContext context) static MethodOgnlRuntime.getGetMethod(OgnlContext unused, Class<?> targetClass, String propertyName) 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(OgnlContext context, 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) 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) (package private) static StringASTMethodUtil.getParmString(OgnlContext context, Object root, Node child, Class prevType) Returns OgnlRuntime.NotFound if the property does not exist.ASTProperty.getProperty(OgnlContext context, Object source) static ObjectOgnlRuntime.getProperty(OgnlContext context, Object source, Object name) Extracts and returns the property of the given name from the given target object.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 PropertyDescriptorOgnlRuntime.getPropertyDescriptorFromArray(Class<?> targetClass, String name) Gets the property descriptor with the given name for the target class given.static Map<String, PropertyDescriptor> OgnlRuntime.getPropertyDescriptors(Class<?> targetClass) This method returns the property descriptors for the given class as a Map.static PropertyDescriptor[]OgnlRuntime.getPropertyDescriptorsArray(Class<?> targetClass) static MethodOgnlRuntime.getSetMethod(OgnlContext context, Class<?> targetClass, String propertyName) static ObjectOgnlRuntime.getStaticField(OgnlContext context, String className, String fieldName) (package private) ObjectASTProperty.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> TEvaluates the given OGNL expression tree to extract a value from the given root object.static <T> TEvaluates the given OGNL expression tree to extract a value from the given root object.static <T> TEvaluates the given OGNL expression tree to extract a value from the given root object.static <T> TEvaluates the given OGNL expression tree to extract a value from the given root object.static <T> TConvenience method that combines calls toparseExpressionandgetValue.static <T> TConvenience method that combines calls toparseExpressionandgetValue.static <T> TEvaluates the given OGNL expression to extract a value from the given root object in a given contextstatic <T> TEvaluates the given OGNL expression to extract a value from the given root object in a given contextstatic <T> TOgnl.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 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.(package private) static ClassASTMethodUtil.getValueClass(OgnlContext context, Object root, Node child) static booleanOgnlRuntime.hasGetMethod(OgnlContext context, Object target, Class<?> targetClass, String propertyName) booleanbooleanObjectPropertyAccessor.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) booleanbooleanObjectPropertyAccessor.hasSetProperty(OgnlContext context, Object target, Object oname) static booleanOgnlRuntime.hasSetProperty(OgnlContext context, Object target, Object oname) static booleanbooleanExpressionNode.isConstant(OgnlContext context) static booleanOgnl.isConstant(Object tree) Same asOgnl.isConstant(Object, java.util.Map)- only theMapcontext is created for you.static booleanOgnl.isConstant(Object tree, Map<String, Object> context) Checks if the specifiedNodeinstance represents a constant expression.static booleanOgnl.isConstant(String expression) Same asOgnl.isConstant(String, java.util.Map)- only theMapinstance is created for you.static booleanOgnl.isConstant(String expression, Map<String, Object> 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) booleanASTChain.isSimpleNavigationChain(OgnlContext context) static booleanOgnl.isSimpleNavigationChain(Object tree) static booleanOgnl.isSimpleNavigationChain(Object tree, Map<String, Object> context) static booleanOgnl.isSimpleNavigationChain(String expression) static booleanOgnl.isSimpleNavigationChain(String expression, Map<String, Object> context) booleanSimpleNode.isSimpleNavigationChain(OgnlContext context) static booleanOgnl.isSimpleProperty(Object tree) static booleanOgnl.isSimpleProperty(Object tree, Map<String, Object> context) static booleanOgnl.isSimpleProperty(String expression) static booleanOgnl.isSimpleProperty(String expression, Map<String, Object> 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) static voidOgnlRuntime.setIndexedProperty(OgnlContext context, Object source, String name, Object index, Object value) static booleanOgnlRuntime.setMethodValue(OgnlContext context, Object target, String propertyName, Object value) static booleanOgnlRuntime.setMethodValue(OgnlContext context, Object target, String propertyName, Object value, boolean checkAccessAndExistence) ObjectPropertyAccessor.setPossibleProperty(Map<String, Object> context, Object target, String name, Object value) Returns OgnlRuntime.NotFound if the property does not exist.voidArrayPropertyAccessor.setProperty(Map<String, Object> context, Object target, Object name, Object value) voidEnumerationPropertyAccessor.setProperty(Map<String, Object> context, Object target, Object name, Object value) voidIteratorPropertyAccessor.setProperty(Map<String, Object> context, Object target, Object name, Object value) voidListPropertyAccessor.setProperty(Map<String, Object> context, Object target, Object name, Object value) voidMapPropertyAccessor.setProperty(Map<String, Object> context, Object target, Object name, Object value) voidObjectPropertyAccessor.setProperty(Map<String, Object> context, Object target, Object oname, Object value) static voidOgnlRuntime.setProperty(OgnlContext context, Object target, Object name, Object value) voidSets 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 voidEvaluates 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 voidEvaluates 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.static Objectstatic Objectstatic Objectstatic Objectstatic Objectstatic Objectstatic Objectstatic Objectstatic Objectstatic Objectstatic Objectstatic Objectstatic Objectstatic Objectstatic Objectstatic ObjectNodeVisitor.visit(ASTBitNegate node, P data) NodeVisitor.visit(ASTGreaterEq node, P data) NodeVisitor.visit(ASTGreater node, P data) NodeVisitor.visit(ASTInstanceof node, P data) NodeVisitor.visit(ASTKeyValue node, P data) NodeVisitor.visit(ASTMultiply node, P data) NodeVisitor.visit(ASTProject node, P data) NodeVisitor.visit(ASTProperty node, P data) NodeVisitor.visit(ASTRemainder node, P data) NodeVisitor.visit(ASTRootVarRef node, P data) NodeVisitor.visit(ASTSelectFirst node, P data) NodeVisitor.visit(ASTSelectLast node, P data) NodeVisitor.visit(ASTSequence node, P data) NodeVisitor.visit(ASTShiftLeft node, P data) NodeVisitor.visit(ASTShiftRight node, P data) NodeVisitor.visit(ASTStaticField node, P data) NodeVisitor.visit(ASTStaticMethod node, P data) NodeVisitor.visit(ASTSubtract node, P data) NodeVisitor.visit(ASTThisVarRef node, P data) NodeVisitor.visit(ASTUnsignedShiftRight node, P data) -
Uses of OgnlException in org.apache.commons.ognl.internal.entry
Methods in org.apache.commons.ognl.internal.entry that throw OgnlExceptionModifier and TypeMethodDescription(package private) static MethodPropertyDescriptorCacheEntryFactory.findClosestMatchingMethod(Class<?> targetClass, Method m, String propertyName, Class<?> propertyType, boolean isReadMethod) private static voidPropertyDescriptorCacheEntryFactory.findObjectIndexedPropertyDescriptors(Class<?> targetClass, Map<String, PropertyDescriptor> intoMap)