public final class ArrayLiteral extends java.lang.Object implements ExpressionNode
Constructor and Description |
---|
ArrayLiteral(java.util.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.
|
java.util.List<ExpressionNode> |
getItems()
Returns an unmodifiable
List containing the array's elements. |
public ArrayLiteral(java.util.List<ExpressionNode> items)
ExpressionNode
elements.items
- the list of ExpressionNode
elementspublic java.util.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 © 2022 The Apache Software Foundation. All rights reserved.