类的使用
cn.taketoday.expression.spel.ExpressionState
使用ExpressionState的程序包
程序包
说明
SpEL's central implementation package.
SpEL's abstract syntax tree.
SpEL's standard parser implementation.
-
cn.taketoday.expression.spel中ExpressionState的使用
修饰符和类型方法说明SpelNode.getTypedValue(ExpressionState expressionState) Evaluate the expression node in the context of the supplied expression state and return the typed value.SpelNode.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.voidSpelNode.setValue(ExpressionState expressionState, Object newValue) Evaluate the expression to a node and then set the new value on that node. -
cn.taketoday.expression.spel.ast中ExpressionState的使用
修饰符和类型方法说明private static StringOpPlus.convertTypedValueToString(TypedValue value, ExpressionState state) Convert operand value to string using registered converter or usingtoStringmethod.private TypedValueConstructorReference.createArray(ExpressionState state) Create an array and return it.private boolean[]ConstructorReference.createBooleanArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) private byte[]ConstructorReference.createByteArray(ExpressionState state, TypeConverter converter, SpelNodeImpl[] children) private char[]ConstructorReference.createCharArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) private double[]ConstructorReference.createDoubleArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) private float[]ConstructorReference.createFloatArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) private int[]ConstructorReference.createIntArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) private long[]ConstructorReference.createLongArray(ExpressionState state, TypeConverter converter, SpelNodeImpl[] children) private TypedValueConstructorReference.createNewInstance(ExpressionState state) Create a new ordinary object and return it.private ObjectConstructorReference.createReferenceTypeArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children, Class<?> componentType) private short[]ConstructorReference.createShortArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) 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.private ConstructorExecutorConstructorReference.findExecutorForConstructor(String typeName, List<TypeDescriptor> argumentTypes, ExpressionState state) Go through the list of registered constructor resolvers and see if any can find a constructor that takes the specified set of arguments.private Object[]FunctionReference.getArguments(ExpressionState state) Compute the arguments to the function, they are the children of this expression node.private Object[]MethodReference.getArguments(ExpressionState state) private booleanOpAnd.getBooleanValue(ExpressionState state, SpelNodeImpl operand) private booleanOpOr.getBooleanValue(ExpressionState state, SpelNodeImpl operand) final TypedValueSpelNodeImpl.getTypedValue(ExpressionState expressionState) final ObjectSpelNodeImpl.getValue(ExpressionState expressionState) protected final <T> TSpelNodeImpl.getValue(ExpressionState state, Class<T> desiredReturnType) 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) MethodReference.getValueInternal(ExpressionState state) OpAnd.getValueInternal(ExpressionState state) OpDec.getValueInternal(ExpressionState state) OpDivide.getValueInternal(ExpressionState state) OpEQ.getValueInternal(ExpressionState state) OperatorBetween.getValueInternal(ExpressionState state) Returns a boolean based on whether a value is in the range expressed.OperatorInstanceof.getValueInternal(ExpressionState state) Compare the left operand to see it is an instance of the type specified as the right operand.OperatorMatches.getValueInternal(ExpressionState state) Check the first operand matches the regex specified as the second operand.OperatorNot.getValueInternal(ExpressionState state) OperatorPower.getValueInternal(ExpressionState state) OpGE.getValueInternal(ExpressionState state) OpGT.getValueInternal(ExpressionState state) OpInc.getValueInternal(ExpressionState state) OpLE.getValueInternal(ExpressionState state) OpLT.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.OpNE.getValueInternal(ExpressionState state) OpOr.getValueInternal(ExpressionState state) 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) protected ValueRefCompoundExpression.getValueRef(ExpressionState state) protected ValueRefIndexer.getValueRef(ExpressionState state) protected ValueRefMethodReference.getValueRef(ExpressionState state) protected ValueRefProjection.getValueRef(ExpressionState state) PropertyOrFieldReference.getValueRef(ExpressionState state) protected ValueRefSelection.getValueRef(ExpressionState state) protected ValueRefSpelNodeImpl.getValueRef(ExpressionState state) VariableReference.getValueRef(ExpressionState state) booleanCompoundExpression.isWritable(ExpressionState state) booleanIndexer.isWritable(ExpressionState expressionState) booleanPropertyOrFieldReference.isWritable(ExpressionState state) booleanSpelNodeImpl.isWritable(ExpressionState expressionState) booleanVariableReference.isWritable(ExpressionState expressionState) voidIndexer.setValue(ExpressionState state, Object newValue) voidSpelNodeImpl.setValue(ExpressionState expressionState, Object newValue) 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) -
cn.taketoday.expression.spel.standard中ExpressionState的使用
修饰符和类型方法说明private voidSpelExpression.checkCompile(ExpressionState expressionState) Compile the expression if it has been evaluated more than the threshold number of times to trigger compilation.