All Implemented Interfaces:
JexlInfo, JexlNode.Literal<Object>, Node

public final class ASTArrayLiteral extends JexlNode implements JexlNode.Literal<Object>
  • Method Details

    • jjtClose

      public void jjtClose()
      This method is called after all the child nodes have been added.
      Specified by:
      jjtClose in interface Node
      Overrides:
      jjtClose in class SimpleNode
    • getLiteral

      public Object getLiteral()
      Gets the literal value.
      Specified by:
      getLiteral in interface JexlNode.Literal<Object>
      Returns:
      the array literal
    • setLiteral

      public void setLiteral(Object literal)
      Sets the literal value only if the descendants of this node compose a constant
      Parameters:
      literal - the literal array value
      Throws:
      IllegalArgumentException - if literal is not an array or null
    • jjtAccept

      public Object jjtAccept(ParserVisitor visitor, Object data)
      Accept the visitor.
      Specified by:
      jjtAccept in interface Node
      Overrides:
      jjtAccept in class SimpleNode
      Parameters:
      visitor - the visitor
      data - contextual data
      Returns:
      result of visit