类的使用
cn.taketoday.expression.spel.ast.SpelNodeImpl
使用SpelNodeImpl的程序包
程序包
说明
SpEL's abstract syntax tree.
SpEL's standard parser implementation.
-
cn.taketoday.expression.spel.ast中SpelNodeImpl的使用
修饰符和类型类说明classRepresents assignment.classRepresents a bean reference to a type, for example@fooor@'foo.bar'.classRepresents the literal valuesTRUEandFALSE.classRepresents a DOT separated expression sequence, such asproperty1.property2.methodOne()orproperty1?.property2?.methodOne()when the null-safe navigation operator is used.classRepresents the invocation of a constructor.classRepresents the Elvis operator?classExpression language AST node that represents a float literal.classA function reference is of the form "#someFunction(a,b,c)".classAn 'identifier'SpelNode.classAn Indexer can index into some proceeding structure to access a particular piece of it.classRepresent a list in an expression, e.g. '{1,2,3}'classRepresent a map in an expression, e.g.classExpression language AST node that represents an integer literal.classCommon superclass for nodes representing literals (boolean, string, number, etc).classExpression language AST node that represents a long integer literal.classExpression language AST node that represents a method reference.classExpression language AST node that represents null.classRepresents the boolean AND operation.classDecrement operator.classImplements division operator.classImplements the equality operator.classCommon supertype for operators that operate on either one or two operands.classRepresents thebetweenoperator.classThe operator 'instanceof' checks if an object is of the class specified in the right hand operand, in the same way thatinstanceofdoes in Java.classImplements the matches operator.classRepresents a NOT operation.classThe power operator.classImplements greater-than-or-equal operator.classImplements the greater-than operator.classIncrement operator.classImplements the less-than-or-equal operator.classImplements the less-than operator.classThe minus operator supports: subtraction of numbers subtraction of an int from a string of one character (effectively decreasing that character), so 'd'-3='a'classImplements the modulus operator.classImplements themultiplyoperator.classImplements the not-equal operator.classRepresents the boolean OR operation.classThe plus operator will: add numbers concatenate stringsclassRepresents projection, where a given operation is performed on all elements in some input sequence, returning a new sequence of the same size.classRepresents a simple property or field reference.classRepresents a dot separated sequence of strings that indicate a package qualified type reference.classExpression language AST node that represents a real literal.classRepresents selection over a map or collection.classExpression language AST node that represents a string literal.classRepresents a ternary expression, for example: "someCheck()?classRepresents a reference to a type, for example"T(String)" or "T(com.somewhere.Foo)".classRepresents a variable reference — for example,#someVar.修饰符和类型字段说明protected SpelNodeImpl[]SpelNodeImpl.childrenprivate final SpelNodeImpl[]ConstructorReference.dimensionsprivate static final SpelNodeImpl[]SpelNodeImpl.NO_CHILDRENprivate final SpelNodeImplValueRef.TypedValueHolderValueRef.nodeprivate SpelNodeImplSpelNodeImpl.parent修饰符和类型方法说明Operator.getLeftOperand()OpDec.getRightOperand()Operator.getRightOperand()OpInc.getRightOperand()OpMinus.getRightOperand()OpPlus.getRightOperand()修饰符和类型方法说明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 ObjectConstructorReference.createReferenceTypeArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children, Class<?> componentType) private short[]ConstructorReference.createShortArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) protected static voidSpelNodeImpl.generateCodeForArgument(MethodVisitor mv, CodeFlow cf, SpelNodeImpl argument, String paramDesc) Ask an argument to generate its bytecode and then follow it up with any boxing/unboxing/checkcasting to ensure it matches the expected parameter descriptor.protected static voidSpelNodeImpl.generateCodeForArguments(MethodVisitor mv, CodeFlow cf, Member member, SpelNodeImpl[] arguments) Generate code that handles building the argument values for the specified method.private booleanOpAnd.getBooleanValue(ExpressionState state, SpelNodeImpl operand) private booleanOpOr.getBooleanValue(ExpressionState state, SpelNodeImpl operand) private voidOpPlus.walk(MethodVisitor mv, CodeFlow cf, SpelNodeImpl operand) Walk through a possible tree of nodes that combine strings and append them all to the same (on stack) StringBuilder.参数类型为SpelNodeImpl的cn.taketoday.expression.spel.ast中的构造器限定符构造器说明Assign(int startPos, int endPos, SpelNodeImpl... operands) CompoundExpression(int startPos, int endPos, SpelNodeImpl... expressionComponents) ConstructorReference(int startPos, int endPos, SpelNodeImpl... arguments) Create a constructor reference.ConstructorReference(int startPos, int endPos, SpelNodeImpl[] dimensions, SpelNodeImpl... arguments) Create a constructor reference.Elvis(int startPos, int endPos, SpelNodeImpl... args) FunctionReference(String functionName, int startPos, int endPos, SpelNodeImpl... arguments) Indexer(int startPos, int endPos, SpelNodeImpl indexExpression) Create anIndexerwith the given start position, end position, and index expression.InlineList(int startPos, int endPos, SpelNodeImpl... args) InlineMap(int startPos, int endPos, SpelNodeImpl... args) MethodReference(boolean nullSafe, String methodName, int startPos, int endPos, SpelNodeImpl... arguments) OpAnd(int startPos, int endPos, SpelNodeImpl... operands) OpDec(int startPos, int endPos, boolean postfix, SpelNodeImpl... operands) OpDivide(int startPos, int endPos, SpelNodeImpl... operands) OpEQ(int startPos, int endPos, SpelNodeImpl... operands) Operator(String payload, int startPos, int endPos, SpelNodeImpl... operands) OperatorBetween(int startPos, int endPos, SpelNodeImpl... operands) OperatorInstanceof(int startPos, int endPos, SpelNodeImpl... operands) OperatorMatches(ConcurrentMap<String, Pattern> patternCache, int startPos, int endPos, SpelNodeImpl... operands) Create a newOperatorMatchesinstance with a shared pattern cache.OperatorNot(int startPos, int endPos, SpelNodeImpl operand) OperatorPower(int startPos, int endPos, SpelNodeImpl... operands) OpGE(int startPos, int endPos, SpelNodeImpl... operands) OpGT(int startPos, int endPos, SpelNodeImpl... operands) OpInc(int startPos, int endPos, boolean postfix, SpelNodeImpl... operands) OpLE(int startPos, int endPos, SpelNodeImpl... operands) OpLT(int startPos, int endPos, SpelNodeImpl... operands) OpMinus(int startPos, int endPos, SpelNodeImpl... operands) OpModulus(int startPos, int endPos, SpelNodeImpl... operands) OpMultiply(int startPos, int endPos, SpelNodeImpl... operands) OpNE(int startPos, int endPos, SpelNodeImpl... operands) OpOr(int startPos, int endPos, SpelNodeImpl... operands) OpPlus(int startPos, int endPos, SpelNodeImpl... operands) Projection(boolean nullSafe, int startPos, int endPos, SpelNodeImpl expression) QualifiedIdentifier(int startPos, int endPos, SpelNodeImpl... operands) Selection(boolean nullSafe, int variant, int startPos, int endPos, SpelNodeImpl expression) SpelNodeImpl(int startPos, int endPos, SpelNodeImpl... operands) Ternary(int startPos, int endPos, SpelNodeImpl... args) TypedValueHolderValueRef(TypedValue typedValue, SpelNodeImpl node) TypeReference(int startPos, int endPos, SpelNodeImpl qualifiedId) TypeReference(int startPos, int endPos, SpelNodeImpl qualifiedId, int dims) -
cn.taketoday.expression.spel.standard中SpelNodeImpl的使用
修饰符和类型方法说明private SpelNodeImplInternalSpelExpressionParser.eatDottedNode()private SpelNodeImplInternalSpelExpressionParser.eatExpression()private SpelNodeImplInternalSpelExpressionParser.eatLogicalAndExpression()private SpelNodeImplInternalSpelExpressionParser.eatLogicalOrExpression()private SpelNodeImplInternalSpelExpressionParser.eatNode()private SpelNodeImplInternalSpelExpressionParser.eatNonDottedNode()private SpelNodeImplInternalSpelExpressionParser.eatPossiblyQualifiedId()Eat an identifier, possibly qualified (meaning that it is dotted).private SpelNodeImplInternalSpelExpressionParser.eatPowerIncDecExpression()private SpelNodeImplInternalSpelExpressionParser.eatPrimaryExpression()private SpelNodeImplInternalSpelExpressionParser.eatProductExpression()private SpelNodeImplInternalSpelExpressionParser.eatRelationalExpression()private SpelNodeImplInternalSpelExpressionParser.eatStartNode()private SpelNodeImplInternalSpelExpressionParser.eatSumExpression()private SpelNodeImplInternalSpelExpressionParser.eatUnaryExpression()private SpelNodeImpl[]InternalSpelExpressionParser.maybeEatMethodArgs()private SpelNodeImplInternalSpelExpressionParser.pop()修饰符和类型方法说明private voidInternalSpelExpressionParser.checkLeftOperand(Token token, SpelNodeImpl operandExpression) private voidInternalSpelExpressionParser.checkOperands(Token token, SpelNodeImpl left, SpelNodeImpl right) private voidInternalSpelExpressionParser.checkRightOperand(Token token, SpelNodeImpl operandExpression) SpelCompiler.compile(SpelNodeImpl expression) Attempt compilation of the supplied expression.private Class<? extends CompiledExpression>SpelCompiler.createExpressionClass(SpelNodeImpl expressionToCompile) Generate the class that encapsulates the compiled expression and define it.private voidInternalSpelExpressionParser.push(SpelNodeImpl newNode) 类型变量类型为SpelNodeImpl的cn.taketoday.expression.spel.standard中的方法参数修饰符和类型方法说明private voidInternalSpelExpressionParser.consumeArguments(List<SpelNodeImpl> accumulatedArguments) Used for consuming arguments for either a method or a constructor call.private voidInternalSpelExpressionParser.eatConstructorArgs(List<SpelNodeImpl> accumulatedArguments) 限定符构造器说明SpelExpression(String expression, SpelNodeImpl ast, SpelParserConfiguration configuration) Construct an expression, only used by the parser.