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 TypeClassDescriptionclass
Exception thrown if a malformed OGNL expression is encountered.class
Exception 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
.class
Exception thrown if a method or constructor call fails.class
Exception 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 Object
OgnlRuntime.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 Object
OgnlRuntime.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 Object
OgnlRuntime.callStaticMethod
(OgnlContext context, String className, String methodName, Object[] args) static <T> Object
OgnlOps.convertValue
(boolean value, Class<T> toType) static <T> Object
OgnlOps.convertValue
(boolean value, Class<T> toType, boolean preventNull) static <T> Object
OgnlOps.convertValue
(byte value, Class<T> toType) static <T> Object
OgnlOps.convertValue
(byte value, Class<T> toType, boolean preventNull) static <T> Object
OgnlOps.convertValue
(char value, Class<T> toType) static <T> Object
OgnlOps.convertValue
(char value, Class<T> toType, boolean preventNull) static <T> Object
OgnlOps.convertValue
(double value, Class<T> toType) static <T> Object
OgnlOps.convertValue
(double value, Class<T> toType, boolean preventNull) static <T> Object
OgnlOps.convertValue
(float value, Class<T> toType) static <T> Object
OgnlOps.convertValue
(float value, Class<T> toType, boolean preventNull) static <T> Object
OgnlOps.convertValue
(int value, Class<T> toType) static <T> Object
OgnlOps.convertValue
(int value, Class<T> toType, boolean preventNull) static <T> Object
OgnlOps.convertValue
(long value, Class<T> toType) static <T> Object
OgnlOps.convertValue
(long value, Class<T> toType, boolean preventNull) protected Object
SimpleNode.evaluateGetValueBody
(OgnlContext context, Object source) protected void
SimpleNode.evaluateSetValueBody
(OgnlContext context, Object target, Object value) 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.Enumeration
<?> ElementsAccessor.getElements
(Object target) Returns an iterator over the elements of the given target object.OgnlCache.getElementsAccessor
(Class<?> clazz) static ElementsAccessor
OgnlRuntime.getElementsAccessor
(Class<?> clazz) (package private) Class
ASTStaticField.getFieldClass
(OgnlContext context) 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.OgnlCache.getMethodAccessor
(Class<?> clazz) static MethodAccessor
OgnlRuntime.getMethodAccessor
(Class<?> clazz) 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.OgnlCache.getNullHandler
(Class<?> clazz) static NullHandler
OgnlRuntime.getNullHandler
(Class<?> clazz) (package private) static String
ASTMethodUtil.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 Object
OgnlRuntime.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 PropertyAccessor
OgnlRuntime.getPropertyAccessor
(Class<?> clazz) static PropertyDescriptor
OgnlRuntime.getPropertyDescriptor
(Class<?> targetClass, String propertyName) This method returns a PropertyDescriptor for the given class and property name using a Map lookup (using getPropertyDescriptorsMap()).static PropertyDescriptor
OgnlRuntime.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 Method
OgnlRuntime.getSetMethod
(OgnlContext context, Class<?> targetClass, String propertyName) 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
Evaluates the given OGNL expression tree to extract a value from the given root object.static <T> T
Evaluates the given OGNL expression tree to extract a value from the given root object.static <T> T
Evaluates the given OGNL expression tree to extract a value from the given root object.static <T> T
Evaluates the given OGNL expression tree to extract a value from the given root object.static <T> T
Convenience method that combines calls toparseExpression
andgetValue
.static <T> T
Convenience method that combines calls toparseExpression
andgetValue
.static <T> T
Evaluates the given OGNL expression to extract a value from the given root object in a given contextstatic <T> T
Evaluates the given OGNL expression to extract a value from the given root object in a given contextstatic <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.hasGetMethod
(OgnlContext context, Object target, Class<?> targetClass, String propertyName) boolean
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
boolean
ObjectPropertyAccessor.hasSetProperty
(OgnlContext context, Object target, Object oname) static boolean
OgnlRuntime.hasSetProperty
(OgnlContext context, Object target, Object oname) static boolean
boolean
ExpressionNode.isConstant
(OgnlContext context) static boolean
Ognl.isConstant
(Object tree) Same asOgnl.isConstant(Object, java.util.Map)
- only theMap
context is created for you.static boolean
Ognl.isConstant
(Object tree, Map<String, Object> context) Checks if the specifiedNode
instance represents a constant expression.static boolean
Ognl.isConstant
(String expression) Same asOgnl.isConstant(String, java.util.Map)
- only theMap
instance is created for you.static boolean
Ognl.isConstant
(String expression, Map<String, Object> context) Checks if the specified expression represents a constant expression.boolean
SimpleNode.isConstant
(OgnlContext context) boolean
ASTEval.isEvalChain
(OgnlContext context) boolean
SimpleNode.isEvalChain
(OgnlContext context) static boolean
OgnlRuntime.isInstance
(OgnlContext context, Object value, String className) 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) static boolean
Ognl.isSimpleNavigationChain
(Object tree) static boolean
Ognl.isSimpleNavigationChain
(Object tree, Map<String, Object> context) static boolean
Ognl.isSimpleNavigationChain
(String expression) static boolean
Ognl.isSimpleNavigationChain
(String expression, Map<String, Object> context) boolean
SimpleNode.isSimpleNavigationChain
(OgnlContext context) static boolean
Ognl.isSimpleProperty
(Object tree) static boolean
Ognl.isSimpleProperty
(Object tree, Map<String, Object> context) static boolean
Ognl.isSimpleProperty
(String expression) static boolean
Ognl.isSimpleProperty
(String expression, Map<String, Object> context) boolean
SimpleNode.isSimpleProperty
(OgnlContext context) static Object
Ognl.parseExpression
(String expression) Parses the given OGNL expression and returns a tree representation of the expression that can be used byOgnl
static methods.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) ObjectPropertyAccessor.setPossibleProperty
(Map<String, Object> context, Object target, String name, Object value) Returns OgnlRuntime.NotFound if the property does not exist.void
ArrayPropertyAccessor.setProperty
(Map<String, Object> context, Object target, Object name, Object value) void
EnumerationPropertyAccessor.setProperty
(Map<String, Object> context, Object target, Object name, Object value) void
IteratorPropertyAccessor.setProperty
(Map<String, Object> context, Object target, Object name, Object value) void
ListPropertyAccessor.setProperty
(Map<String, Object> context, Object target, Object name, Object value) void
MapPropertyAccessor.setProperty
(Map<String, Object> context, Object target, Object name, Object value) void
ObjectPropertyAccessor.setProperty
(Map<String, Object> context, Object target, Object oname, Object value) static void
OgnlRuntime.setProperty
(OgnlContext context, Object target, Object name, Object value) void
Sets the value of the property of the given name in the given target object.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
Evaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object.static void
Evaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object.static void
Convenience method that combines calls toparseExpression
andsetValue
.static void
Evaluates the given OGNL expression to insert a value into the object graph rooted at the given root object given the context.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 Object
static Object
static Object
static Object
static Object
static Object
static Object
static Object
static Object
static Object
static Object
static Object
static Object
static Object
static Object
static Object
NodeVisitor.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 Method
PropertyDescriptorCacheEntryFactory.findClosestMatchingMethod
(Class<?> targetClass, Method m, String propertyName, Class<?> propertyType, boolean isReadMethod) private static void
PropertyDescriptorCacheEntryFactory.findObjectIndexedPropertyDescriptors
(Class<?> targetClass, Map<String, PropertyDescriptor> intoMap)