类 InlineMap

java.lang.Object
cn.taketoday.expression.spel.ast.SpelNodeImpl
cn.taketoday.expression.spel.ast.InlineMap
所有已实现的接口:
Opcodes, SpelNode

public class InlineMap extends SpelNodeImpl
Represent a map in an expression, e.g. '{name:'foo',age:12}'
从以下版本开始:
4.0
作者:
Andy Clement, Sam Brannen, Harry Yang
  • 字段详细资料

  • 构造器详细资料

    • InlineMap

      public InlineMap(int startPos, int endPos, SpelNodeImpl... args)
  • 方法详细资料

    • computeConstantValue

      @Nullable private TypedValue 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. This will speed up later getValue calls and reduce the amount of garbage created.
    • getValueInternal

      public TypedValue getValueInternal(ExpressionState expressionState) throws EvaluationException
      指定者:
      getValueInternal 在类中 SpelNodeImpl
      抛出:
      EvaluationException
    • toStringAST

      public String toStringAST()
      从接口复制的说明: SpelNode
      Return the string form the this AST node.
      返回:
      the string form
    • isConstant

      public boolean isConstant()
      Return whether this list is a constant value.
    • getConstantValue

      @Nullable public Map<Object,Object> getConstantValue()