类的使用
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 standard parser implementation.
SpEL's default implementations for various core abstractions.
-
cn.taketoday.expression中TypedValue的使用
修饰符和类型方法说明default TypedValueEvaluationContext.assignVariable(String name, Supplier<TypedValue> valueSupplier) Assign the value created by the specifiedSupplierto a named variable within this evaluation context.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.类型变量类型为TypedValue的cn.taketoday.expression中的方法参数修饰符和类型方法说明default TypedValueEvaluationContext.assignVariable(String name, Supplier<TypedValue> valueSupplier) Assign the value created by the specifiedSupplierto a named variable within this evaluation context. -
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.private static <T> TExpressionUtils.convertValue(TypeConverter typeConverter, TypedValue typedValue, Class<T> targetType) 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的使用
类型参数类型为TypedValue的cn.taketoday.expression.spel中的字段修饰符和类型字段说明private Deque<TypedValue>ExpressionState.contextObjectsprivate ArrayDeque<TypedValue>ExpressionState.scopeRootObjects修饰符和类型方法说明ExpressionState.assignVariable(String name, Supplier<TypedValue> valueSupplier) Assign the value created by the specifiedSupplierto a named variable within the evaluation context.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中的方法参数类型为TypedValue的cn.taketoday.expression.spel中的方法修饰符和类型方法说明ExpressionState.convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor) voidExpressionState.pushActiveContextObject(TypedValue obj) 类型变量类型为TypedValue的cn.taketoday.expression.spel中的方法参数修饰符和类型方法说明ExpressionState.assignVariable(String name, Supplier<TypedValue> valueSupplier) Assign the value created by the specifiedSupplierto a named variable within the evaluation context.参数类型为TypedValue的cn.taketoday.expression.spel中的构造器限定符构造器说明ExpressionState(EvaluationContext context, TypedValue rootObject) ExpressionState(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration) -
cn.taketoday.expression.spel.ast中TypedValue的使用
修饰符和类型字段说明private final TypedValueInlineList.constantprivate final TypedValueInlineMap.constantprivate final TypedValuePropertyOrFieldReference.AccessorLValue.contextObjectprivate final TypedValueIdentifier.idprivate final TypedValueValueRef.TypedValueHolderValueRef.typedValueprivate final TypedValueFloatLiteral.valueprivate final TypedValueIntLiteral.valueprivate final TypedValueLongLiteral.valueprivate TypedValueQualifiedIdentifier.valueprivate final TypedValueRealLiteral.valueprivate final TypedValueStringLiteral.valueprivate final TypedValueVariableReference.VariableRef.value修饰符和类型方法说明private TypedValueInlineList.computeConstant()If all the components of the list are constants, or lists that themselves contain constants, then a constant list can be built to represent this node.private TypedValueInlineMap.computeConstantValue()If all the components of the map are constants, or lists/maps that themselves contain constants, then a constant list can be built to represent this node.private TypedValueOpPlus.concatenate(String leftString, String rightString) private TypedValueConstructorReference.createArray(ExpressionState state) Create an array and return it.private TypedValueConstructorReference.createNewInstance(ExpressionState state) Create a new ordinary object and return it.private TypedValueFunctionReference.executeFunctionBoundMethodHandle(ExpressionState state, MethodHandle methodHandle) Execute a function represented asjava.lang.invoke.MethodHandle.private TypedValueFunctionReference.executeFunctionJLRMethod(ExpressionState state, Method method) Execute a function represented as ajava.lang.reflect.Method.FloatLiteral.getLiteralValue()IntLiteral.getLiteralValue()abstract TypedValueLiteral.getLiteralValue()LongLiteral.getLiteralValue()NullLiteral.getLiteralValue()RealLiteral.getLiteralValue()StringLiteral.getLiteralValue()final TypedValueSpelNodeImpl.getTypedValue(ExpressionState expressionState) Indexer.ArrayIndexingValueRef.getValue()Indexer.CollectionIndexingValueRef.getValue()Indexer.MapIndexingValueRef.getValue()Indexer.PropertyIndexingValueRef.getValue()Indexer.StringIndexingLValue.getValue()MethodReference.MethodValueRef.getValue()PropertyOrFieldReference.AccessorLValue.getValue()ValueRef.getValue()Returns the value this ValueRef points to, it should not require expression component re-evaluation.ValueRef.NullValueRef.getValue()ValueRef.TypedValueHolderValueRef.getValue()VariableReference.VariableRef.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 neither null nor an empty String, 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) private TypedValueMethodReference.getValueInternal(EvaluationContext evaluationContext, Object value, TypeDescriptor targetType, Object[] arguments) 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) private TypedValuePropertyOrFieldReference.getValueInternal(TypedValue contextObject, EvaluationContext evalContext, boolean isAutoGrowNullReferences) 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) private TypedValuePropertyOrFieldReference.readProperty(TypedValue contextObject, EvaluationContext evalContext, String name) Attempt to read the named property from the current context object.CompoundExpression.setValueInternal(ExpressionState state, Supplier<TypedValue> valueSupplier) PropertyOrFieldReference.setValueInternal(ExpressionState state, Supplier<TypedValue> valueSupplier) SpelNodeImpl.setValueInternal(ExpressionState state, Supplier<TypedValue> valueSupplier) Evaluate the expression to a node and then set the new value created by the specifiedSupplieron that node.VariableReference.setValueInternal(ExpressionState state, Supplier<TypedValue> valueSupplier) 修饰符和类型方法说明private static StringOpPlus.convertTypedValueToString(TypedValue value, ExpressionState state) Convert operand value to string using registered converter or usingtoStringmethod.private TypedValuePropertyOrFieldReference.getValueInternal(TypedValue contextObject, EvaluationContext evalContext, boolean isAutoGrowNullReferences) booleanPropertyOrFieldReference.isWritableProperty(String name, TypedValue contextObject, EvaluationContext evalContext) private TypedValuePropertyOrFieldReference.readProperty(TypedValue contextObject, EvaluationContext evalContext, String name) Attempt to read the named property from the current context object.private voidPropertyOrFieldReference.writeProperty(TypedValue contextObject, EvaluationContext evalContext, String name, Object newValue) 类型变量类型为TypedValue的cn.taketoday.expression.spel.ast中的方法参数修饰符和类型方法说明CompoundExpression.setValueInternal(ExpressionState state, Supplier<TypedValue> valueSupplier) PropertyOrFieldReference.setValueInternal(ExpressionState state, Supplier<TypedValue> valueSupplier) SpelNodeImpl.setValueInternal(ExpressionState state, Supplier<TypedValue> valueSupplier) Evaluate the expression to a node and then set the new value created by the specifiedSupplieron that node.VariableReference.setValueInternal(ExpressionState state, Supplier<TypedValue> valueSupplier) 参数类型为TypedValue的cn.taketoday.expression.spel.ast中的构造器限定符构造器说明AccessorLValue(PropertyOrFieldReference propertyOrFieldReference, TypedValue activeContextObject, EvaluationContext evalContext, boolean autoGrowNullReferences) TypedValueHolderValueRef(TypedValue typedValue, SpelNodeImpl node) VariableRef(String name, TypedValue value, EvaluationContext evaluationContext) -
cn.taketoday.expression.spel.standard中TypedValue的使用
-
cn.taketoday.expression.spel.support中TypedValue的使用
修饰符和类型字段说明private TypedValueSimpleEvaluationContext.Builder.rootObjectprivate final TypedValueSimpleEvaluationContext.rootObjectprivate TypedValueStandardEvaluationContext.rootObject修饰符和类型方法说明SimpleEvaluationContext.assignVariable(String name, Supplier<TypedValue> valueSupplier) SimpleEvaluationContextdoes not support variable assignment within expressions.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) 类型变量类型为TypedValue的cn.taketoday.expression.spel.support中的方法参数修饰符和类型方法说明SimpleEvaluationContext.assignVariable(String name, Supplier<TypedValue> valueSupplier) SimpleEvaluationContextdoes not support variable assignment within expressions.限定符构造器说明privateSimpleEvaluationContext(List<PropertyAccessor> accessors, List<MethodResolver> resolvers, TypeConverter converter, TypedValue rootObject)