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.Listpublic <T> T accept(NodeVisitor<T> visitor)
ExpressionNodeaccept in interface ExpressionNodeT - the type of the visitorvisitor - The visitorCopyright © 2017 The Apache Software Foundation. All rights reserved.