ArrayAccessTree.java revision 3193:3b3bea483542
1193645Ssimon/*
2193645Ssimon * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
3193645Ssimon * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4280304Sjkim *
5193645Ssimon * This code is free software; you can redistribute it and/or modify it
6193645Ssimon * under the terms of the GNU General Public License version 2 only, as
7193645Ssimon * published by the Free Software Foundation.  Oracle designates this
8193645Ssimon * particular file as subject to the "Classpath" exception as provided
9280304Sjkim * by Oracle in the LICENSE file that accompanied this code.
10193645Ssimon *
11280304Sjkim * This code is distributed in the hope that it will be useful, but WITHOUT
12193645Ssimon * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13280304Sjkim * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14280304Sjkim * version 2 for more details (a copy is included in the LICENSE file that
15280304Sjkim * accompanied this code).
16193645Ssimon *
17193645Ssimon * You should have received a copy of the GNU General Public License version
18193645Ssimon * 2 along with this work; if not, write to the Free Software Foundation,
19193645Ssimon * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20193645Ssimon *
21280304Sjkim * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22280304Sjkim * or visit www.oracle.com if you need additional information or have any
23193645Ssimon * questions.
24193645Ssimon */
25193645Ssimon
26193645Ssimonpackage com.sun.source.tree;
27280304Sjkim
28280304Sjkim/**
29280304Sjkim * A tree node for an array access expression.
30280304Sjkim *
31193645Ssimon * For example:
32280304Sjkim * <pre>
33280304Sjkim *   <em>expression</em> [ <em>index</em> ]
34280304Sjkim * </pre>
35280304Sjkim *
36280304Sjkim * @jls section 15.13
37193645Ssimon *
38280304Sjkim * @author Peter von der Ah&eacute;
39280304Sjkim * @author Jonathan Gibbons
40280304Sjkim * @since 1.6
41280304Sjkim */
42193645Ssimonpublic interface ArrayAccessTree extends ExpressionTree {
43193645Ssimon    /**
44193645Ssimon     * Returns the expression for the array being accessed.
45280304Sjkim     * @return the array
46193645Ssimon     */
47280304Sjkim    ExpressionTree getExpression();
48193645Ssimon
49280304Sjkim    /**
50193645Ssimon     * Returns the expression for the index.
51280304Sjkim     * @return the index
52193645Ssimon     */
53193645Ssimon    ExpressionTree getIndex();
54193645Ssimon}
55280304Sjkim