Class BoxArrayLiteral

All Implemented Interfaces:
IBoxLiteral, BoxVisitable

public class BoxArrayLiteral extends BoxExpression implements IBoxLiteral
AST Node representing an array literal. An array literal is surrounded by square braces [] and contains zero or more comma-delimited expressions. Example
 []
 [1,2,3]
 ["foo","bar"]
 [
 [1,2],
 [3,4],
 "brad"
 ]
 
  • Constructor Details

    • BoxArrayLiteral

      public BoxArrayLiteral(List<BoxExpression> values, Position position, String sourceText)
      Creates the AST node for an anonymous argument
      Parameters:
      values - initialization values
      position - position of the statement in the source code
      sourceText - source code that originated the Node
  • Method Details