public class ArrayNode extends ConstNode
Represents an array literal in the syntax tree.
  • 构造器详细资料

    • ArrayNode

      public ArrayNode(Object[][] elements)
      Creates a new ArrayNode from array.
      参数:
      elements - Array elements. The value can't be null( Nothing).
  • 方法详细资料

    • getElements

      public final Object[][] getElements()
      Array elements of this node. The value can't be null.

      Supported types:

      double, String, boolean, CalcError.

      The following types will be normalized to double if you convert theArrayNode to string and then convert it back:

      byte, short, int, long, float.

      Floating-point types can't be NaN or infinity.

    • setElements

      public final void setElements(Object[][] value)
      Array elements of this node. The value can't be null.

      Supported types:

      double, String, boolean, CalcError.

      The following types will be normalized to double if you convert theArrayNode to string and then convert it back:

      byte, short, int, long, float.

      Floating-point types can't be NaN or infinity.