类的使用
cn.taketoday.expression.TypedValue
使用TypedValue的程序包
程序包
说明
Core abstractions behind the Spring Expression Language.
Common utility classes behind the Spring Expression Language.
SpEL's central implementation package.
SpEL's abstract syntax tree.
SpEL's default implementations for various core abstractions.
-
cn.taketoday.expression中TypedValue的使用
修饰符和类型方法说明ConstructorExecutor.execute(EvaluationContext context, Object... arguments) Execute a constructor in the specified context using the specified arguments.MethodExecutor.execute(EvaluationContext context, Object target, Object... arguments) Execute a command using the specified arguments, and using the specified expression state.EvaluationContext.getRootObject()Return the default root context object against which unqualified properties/methods/etc should be resolved.PropertyAccessor.read(EvaluationContext context, Object target, String name) Called to read a property from a specified target object. -
cn.taketoday.expression.common中TypedValue的使用
参数类型为TypedValue的cn.taketoday.expression.common中的方法修饰符和类型方法说明static <T> TExpressionUtils.convertTypedValue(EvaluationContext context, TypedValue typedValue, Class<T> targetType) Determines if there is a type converter available in the specified context and attempts to use it to convert the supplied value to the specified type.static booleanExpressionUtils.toBoolean(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a boolean using the supplied type converter.static byteExpressionUtils.toByte(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a byte using the supplied type converter.static charExpressionUtils.toChar(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a char using the supplied type converter.static doubleExpressionUtils.toDouble(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a double using the supplied type converter.static floatExpressionUtils.toFloat(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a float using the supplied type converter.static intExpressionUtils.toInt(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to an int using the supplied type converter.static longExpressionUtils.toLong(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a long using the supplied type converter.static shortExpressionUtils.toShort(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a short using the supplied type converter. -
cn.taketoday.expression.spel中TypedValue的使用
修饰符和类型方法说明ExpressionState.getActiveContextObject()The active context object is what unqualified references to properties/etc are resolved against.ExpressionState.getRootContextObject()ExpressionState.getScopeRootContextObject()SpelNode.getTypedValue(ExpressionState expressionState) Evaluate the expression node in the context of the supplied expression state and return the typed value.ExpressionState.lookupVariable(String name) 参数类型为TypedValue的cn.taketoday.expression.spel中的方法修饰符和类型方法说明ExpressionState.convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor) voidExpressionState.pushActiveContextObject(TypedValue obj) 参数类型为TypedValue的cn.taketoday.expression.spel中的构造器限定符构造器说明ExpressionState(EvaluationContext context, TypedValue rootObject) ExpressionState(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration) -
cn.taketoday.expression.spel.ast中TypedValue的使用
修饰符和类型方法说明FloatLiteral.getLiteralValue()IntLiteral.getLiteralValue()abstract TypedValueLiteral.getLiteralValue()LongLiteral.getLiteralValue()NullLiteral.getLiteralValue()RealLiteral.getLiteralValue()StringLiteral.getLiteralValue()final TypedValueSpelNodeImpl.getTypedValue(ExpressionState expressionState) ValueRef.getValue()Returns the value this ValueRef points to, it should not require expression component re-evaluation.ValueRef.NullValueRef.getValue()ValueRef.TypedValueHolderValueRef.getValue()Assign.getValueInternal(ExpressionState state) BeanReference.getValueInternal(ExpressionState state) CompoundExpression.getValueInternal(ExpressionState state) Evaluates a compound expression.ConstructorReference.getValueInternal(ExpressionState state) Implements getValue() - delegating to the code for building an array or a simple type.Elvis.getValueInternal(ExpressionState state) Evaluate the condition and if not null, return it.FunctionReference.getValueInternal(ExpressionState state) Identifier.getValueInternal(ExpressionState state) Indexer.getValueInternal(ExpressionState state) InlineList.getValueInternal(ExpressionState expressionState) InlineMap.getValueInternal(ExpressionState expressionState) final TypedValueLiteral.getValueInternal(ExpressionState state) MethodReference.getValueInternal(ExpressionState state) OpAnd.getValueInternal(ExpressionState state) OpDec.getValueInternal(ExpressionState state) OpDivide.getValueInternal(ExpressionState state) OperatorPower.getValueInternal(ExpressionState state) OpInc.getValueInternal(ExpressionState state) OpMinus.getValueInternal(ExpressionState state) OpModulus.getValueInternal(ExpressionState state) OpMultiply.getValueInternal(ExpressionState state) Implements themultiplyoperator directly here for certain types of supported operands and otherwise delegates to any registered overloader for types not supported here.OpPlus.getValueInternal(ExpressionState state) Projection.getValueInternal(ExpressionState state) PropertyOrFieldReference.getValueInternal(ExpressionState state) QualifiedIdentifier.getValueInternal(ExpressionState state) Selection.getValueInternal(ExpressionState state) abstract TypedValueSpelNodeImpl.getValueInternal(ExpressionState expressionState) Ternary.getValueInternal(ExpressionState state) Evaluate the condition and if true evaluate the first alternative, otherwise evaluate the second alternative.TypeReference.getValueInternal(ExpressionState state) VariableReference.getValueInternal(ExpressionState state) 修饰符和类型方法说明booleanPropertyOrFieldReference.isWritableProperty(String name, TypedValue contextObject, EvaluationContext evalContext) 参数类型为TypedValue的cn.taketoday.expression.spel.ast中的构造器 -
cn.taketoday.expression.spel.support中TypedValue的使用
修饰符和类型方法说明ReflectiveConstructorExecutor.execute(EvaluationContext context, Object... arguments) ReflectiveMethodExecutor.execute(EvaluationContext context, Object target, Object... arguments) SimpleEvaluationContext.getRootObject()Return the specified root object, if any.StandardEvaluationContext.getRootObject()ReflectivePropertyAccessor.OptimalPropertyAccessor.read(EvaluationContext context, Object target, String name) ReflectivePropertyAccessor.read(EvaluationContext context, Object target, String name)