public final class ArrayLiteral extends Object implements ExpressionNode
Constructor and Description |
---|
ArrayLiteral(List<ExpressionNode> items)
Creates an array from a list of
ExpressionNode elements. |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(NodeVisitor<T> visitor)
Accept a visitor to process this node.
|
List<ExpressionNode> |
getItems()
Returns an unmodifiable
List containing the array's elements. |
public ArrayLiteral(List<ExpressionNode> items)
ExpressionNode
elements.items
- the list of ExpressionNode
elementspublic List<ExpressionNode> getItems()
List
containing the array's elements.List
public <T> T accept(NodeVisitor<T> visitor)
ExpressionNode
accept
in interface ExpressionNode
T
- the type of the visitorvisitor
- The visitorCopyright © 2017 The Apache Software Foundation. All rights reserved.