ArrayLiteralTree.java revision 1204:9597425b6b38
1216115Slstewart/*
2216115Slstewart * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3216115Slstewart * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4216115Slstewart *
5216115Slstewart * This code is free software; you can redistribute it and/or modify it
6216115Slstewart * under the terms of the GNU General Public License version 2 only, as
7216115Slstewart * published by the Free Software Foundation.  Oracle designates this
8216115Slstewart * particular file as subject to the "Classpath" exception as provided
9220560Slstewart * by Oracle in the LICENSE file that accompanied this code.
10220560Slstewart *
11220560Slstewart * This code is distributed in the hope that it will be useful, but WITHOUT
12216115Slstewart * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13216115Slstewart * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14216115Slstewart * version 2 for more details (a copy is included in the LICENSE file that
15216115Slstewart * accompanied this code).
16216115Slstewart *
17216115Slstewart * You should have received a copy of the GNU General Public License version
18216115Slstewart * 2 along with this work; if not, write to the Free Software Foundation,
19216115Slstewart * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20216115Slstewart *
21216115Slstewart * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22216115Slstewart * or visit www.oracle.com if you need additional information or have any
23216115Slstewart * questions.
24216115Slstewart */
25216115Slstewart
26216115Slstewartpackage jdk.nashorn.api.tree;
27216115Slstewart
28216115Slstewartimport java.util.List;
29216115Slstewart
30216115Slstewart/**
31216115Slstewart * Represents ECMAScript array literal expression.
32216115Slstewart *
33216115Slstewart * @since 1.9
34216115Slstewart */
35216115Slstewart@jdk.Exported
36216115Slstewartpublic interface ArrayLiteralTree extends ExpressionTree {
37216115Slstewart    /**
38216115Slstewart     * Returns the list of Array element expressions.
39216115Slstewart     *
40216115Slstewart     * @return array element expressions
41216115Slstewart     */
42216115Slstewart    public List<? extends ExpressionTree> getElements();
43220560Slstewart}
44220560Slstewart