类的使用
org.springframework.expression.EvaluationException
使用EvaluationException的程序包 程序包 说明 org.springframework.expression Core abstractions behind the Spring Expression Language.org.springframework.expression.common Common utility classes behind the Spring Expression Language.org.springframework.expression.spel SpEL's central implementation package.org.springframework.expression.spel.ast SpEL's abstract syntax tree.org.springframework.expression.spel.standard SpEL's standard parser implementation.org.springframework.expression.spel.support SpEL's default implementations for various core abstractions.org.springframework.expression中EvaluationException的使用
org.springframework.expression中EvaluationException的子类 修饰符和类型 类 说明 classExpressionInvocationTargetExceptionThis exception wraps (as cause) a checked exception thrown by some method that SpEL invokes.抛出EvaluationException的org.springframework.expression中的方法 修饰符和类型 方法 说明 intTypeComparator. compare(Object firstObject, Object secondObject)Compare two given objects.Class<?>TypeLocator. findType(String typeName)Find a type by name.ObjectExpression. getValue()Evaluate this expression in the default standard context.<T> TExpression. getValue(Class<T> desiredResultType)Evaluate the expression in the default context.ObjectExpression. getValue(Object rootObject)Evaluate this expression against the specified root object.<T> TExpression. getValue(Object rootObject, Class<T> desiredResultType)Evaluate the expression in the default context against the specified root object.ObjectExpression. getValue(EvaluationContext context)Evaluate this expression in the provided context and return the result of evaluation.<T> TExpression. getValue(EvaluationContext context, Class<T> desiredResultType)Evaluate the expression in a specified context which can resolve references to properties, methods, types, etc.ObjectExpression. getValue(EvaluationContext context, Object rootObject)Evaluate this expression in the provided context and return the result of evaluation, but use the supplied root context as an override for any default root object specified in the context.<T> TExpression. getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType)Evaluate the expression in a specified context which can resolve references to properties, methods, types, etc.Class<?>Expression. getValueType()Return the most general type that can be passed to aExpression.setValue(java.lang.Object, java.lang.Object)method using the default context.Class<?>Expression. getValueType(Object rootObject)Return the most general type that can be passed to theExpression.setValue(Object, Object)method using the default context.Class<?>Expression. getValueType(EvaluationContext context)Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object)method for the given context.Class<?>Expression. getValueType(EvaluationContext context, Object rootObject)Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object, Object)method for the given context.TypeDescriptorExpression. getValueTypeDescriptor()Return the most general type that can be passed to aExpression.setValue(java.lang.Object, java.lang.Object)method using the default context.TypeDescriptorExpression. getValueTypeDescriptor(Object rootObject)Return the most general type that can be passed to theExpression.setValue(Object, Object)method using the default context.TypeDescriptorExpression. getValueTypeDescriptor(EvaluationContext context)Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object)method for the given context.TypeDescriptorExpression. getValueTypeDescriptor(EvaluationContext context, Object rootObject)Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object, Object)method for the given context.booleanExpression. isWritable(Object rootObject)Determine if an expression can be written to, i.e. setValue() can be called.booleanExpression. isWritable(EvaluationContext context)Determine if an expression can be written to, i.e. setValue() can be called.booleanExpression. isWritable(EvaluationContext context, Object rootObject)Determine if an expression can be written to, i.e. setValue() can be called.ObjectOperatorOverloader. operate(Operation operation, Object leftOperand, Object rightOperand)Execute the specified operation on two operands, returning a result.booleanOperatorOverloader. overridesOperation(Operation operation, Object leftOperand, Object rightOperand)Return true if the operator overloader supports the specified operation between the two operands and so should be invoked to handle it.voidExpression. setValue(Object rootObject, Object value)Set this expression in the provided context to the value provided.voidExpression. setValue(EvaluationContext context, Object value)Set this expression in the provided context to the value provided.voidExpression. setValue(EvaluationContext context, Object rootObject, Object value)Set this expression in the provided context to the value provided.org.springframework.expression.common中EvaluationException的使用
抛出EvaluationException的org.springframework.expression.common中的方法 修饰符和类型 方法 说明 StringCompositeStringExpression. getValue()<T> TCompositeStringExpression. getValue(Class<T> expectedResultType)StringCompositeStringExpression. getValue(Object rootObject)<T> TCompositeStringExpression. getValue(Object rootObject, Class<T> desiredResultType)StringCompositeStringExpression. getValue(EvaluationContext context)<T> TCompositeStringExpression. getValue(EvaluationContext context, Class<T> expectedResultType)StringCompositeStringExpression. getValue(EvaluationContext context, Object rootObject)<T> TCompositeStringExpression. getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType)<T> TLiteralExpression. getValue(Class<T> expectedResultType)<T> TLiteralExpression. getValue(Object rootObject, Class<T> desiredResultType)<T> TLiteralExpression. getValue(EvaluationContext context, Class<T> expectedResultType)StringLiteralExpression. getValue(EvaluationContext context, Object rootObject)<T> TLiteralExpression. getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType)Class<?>CompositeStringExpression. getValueType(Object rootObject)Class<?>CompositeStringExpression. getValueType(EvaluationContext context, Object rootObject)Class<?>LiteralExpression. getValueType(Object rootObject)Class<?>LiteralExpression. getValueType(EvaluationContext context, Object rootObject)TypeDescriptorCompositeStringExpression. getValueTypeDescriptor(Object rootObject)TypeDescriptorCompositeStringExpression. getValueTypeDescriptor(EvaluationContext context, Object rootObject)TypeDescriptorLiteralExpression. getValueTypeDescriptor(Object rootObject)TypeDescriptorLiteralExpression. getValueTypeDescriptor(EvaluationContext context, Object rootObject)booleanCompositeStringExpression. isWritable(Object rootObject)booleanCompositeStringExpression. isWritable(EvaluationContext context, Object rootObject)booleanLiteralExpression. isWritable(Object rootObject)booleanLiteralExpression. isWritable(EvaluationContext context, Object rootObject)voidCompositeStringExpression. setValue(Object rootObject, Object value)voidCompositeStringExpression. setValue(EvaluationContext context, Object value)voidCompositeStringExpression. setValue(EvaluationContext context, Object rootObject, Object value)voidLiteralExpression. setValue(Object rootObject, Object value)voidLiteralExpression. setValue(EvaluationContext context, Object value)voidLiteralExpression. setValue(EvaluationContext context, Object rootObject, Object value)org.springframework.expression.spel中EvaluationException的使用
org.springframework.expression.spel中EvaluationException的子类 修饰符和类型 类 说明 classSpelEvaluationExceptionRoot exception for Spring EL related exceptions.抛出EvaluationException的org.springframework.expression.spel中的方法 修饰符和类型 方法 说明 ObjectExpressionState. convertValue(Object value, TypeDescriptor targetTypeDescriptor)ObjectExpressionState. convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor)Class<?>ExpressionState. findType(String type)TypedValueSpelNode. getTypedValue(ExpressionState expressionState)Evaluate the expression node in the context of the supplied expression state and return the typed value.abstract ObjectCompiledExpression. getValue(Object target, EvaluationContext context)Subclasses of CompiledExpression generated by SpelCompiler will provide an implementation of this method.ObjectSpelNode. getValue(ExpressionState expressionState)Evaluate the expression node in the context of the supplied expression state and return the value.booleanSpelNode. isWritable(ExpressionState expressionState)Determine if this expression node will support a setValue() call.TypedValueExpressionState. operate(Operation op, Object left, Object right)voidSpelNode. setValue(ExpressionState expressionState, Object newValue)Evaluate the expression to a node and then set the new value on that node.org.springframework.expression.spel.ast中EvaluationException的使用
org.springframework.expression.spel.standard中EvaluationException的使用
抛出EvaluationException的org.springframework.expression.spel.standard中的方法 修饰符和类型 方法 说明 ObjectSpelExpression. getValue()<T> TSpelExpression. getValue(Class<T> expectedResultType)ObjectSpelExpression. getValue(Object rootObject)<T> TSpelExpression. getValue(Object rootObject, Class<T> expectedResultType)ObjectSpelExpression. getValue(EvaluationContext context)<T> TSpelExpression. getValue(EvaluationContext context, Class<T> expectedResultType)ObjectSpelExpression. getValue(EvaluationContext context, Object rootObject)<T> TSpelExpression. getValue(EvaluationContext context, Object rootObject, Class<T> expectedResultType)Class<?>SpelExpression. getValueType()Class<?>SpelExpression. getValueType(Object rootObject)Class<?>SpelExpression. getValueType(EvaluationContext context)Class<?>SpelExpression. getValueType(EvaluationContext context, Object rootObject)TypeDescriptorSpelExpression. getValueTypeDescriptor()TypeDescriptorSpelExpression. getValueTypeDescriptor(Object rootObject)TypeDescriptorSpelExpression. getValueTypeDescriptor(EvaluationContext context)TypeDescriptorSpelExpression. getValueTypeDescriptor(EvaluationContext context, Object rootObject)booleanSpelExpression. isWritable(Object rootObject)booleanSpelExpression. isWritable(EvaluationContext context)booleanSpelExpression. isWritable(EvaluationContext context, Object rootObject)voidSpelExpression. setValue(Object rootObject, Object value)voidSpelExpression. setValue(EvaluationContext context, Object value)voidSpelExpression. setValue(EvaluationContext context, Object rootObject, Object value)org.springframework.expression.spel.support中EvaluationException的使用
抛出EvaluationException的org.springframework.expression.spel.support中的方法 修饰符和类型 方法 说明 Class<?>StandardTypeLocator. findType(String typeName)Find a (possibly unqualified) type reference - first using the type name as-is, then trying any registered prefixes if the type name cannot be found.ObjectStandardOperatorOverloader. operate(Operation operation, Object leftOperand, Object rightOperand)booleanStandardOperatorOverloader. overridesOperation(Operation operation, Object leftOperand, Object rightOperand)