MemberSelectTree.java revision 3193:3b3bea483542
188309Sphantom/*
287658Sphantom * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
372165Sphantom * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
472165Sphantom *
5227753Stheraven * This code is free software; you can redistribute it and/or modify it
6227753Stheraven * under the terms of the GNU General Public License version 2 only, as
7227753Stheraven * published by the Free Software Foundation.  Oracle designates this
8227753Stheraven * particular file as subject to the "Classpath" exception as provided
9227753Stheraven * by Oracle in the LICENSE file that accompanied this code.
1072165Sphantom *
1172165Sphantom * This code is distributed in the hope that it will be useful, but WITHOUT
1272165Sphantom * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1372165Sphantom * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1472165Sphantom * version 2 for more details (a copy is included in the LICENSE file that
1572165Sphantom * accompanied this code).
1672165Sphantom *
1772165Sphantom * You should have received a copy of the GNU General Public License version
1872165Sphantom * 2 along with this work; if not, write to the Free Software Foundation,
1972165Sphantom * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2072165Sphantom *
2172165Sphantom * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2272165Sphantom * or visit www.oracle.com if you need additional information or have any
2372165Sphantom * questions.
2472165Sphantom */
2572165Sphantom
2672165Sphantompackage com.sun.source.tree;
2772165Sphantom
2872165Sphantomimport javax.lang.model.element.Name;
2972165Sphantom
3072165Sphantom/**
3172165Sphantom * A tree node for a member access expression.
3272165Sphantom *
3372165Sphantom * For example:
3488309Sphantom * <pre>
3588309Sphantom *   <em>expression</em> . <em>identifier</em>
36227753Stheraven * </pre>
3772165Sphantom *
3872165Sphantom * @jls sections 6.5, 15.11,and 15.12
3988309Sphantom *
4088309Sphantom * @author Peter von der Ah&eacute;
4188309Sphantom * @author Jonathan Gibbons
4288309Sphantom * @since 1.6
4388309Sphantom */
4488309Sphantompublic interface MemberSelectTree extends ExpressionTree {
4588309Sphantom    /**
4688309Sphantom     * Returns the expression for which a member is to be selected.
4788309Sphantom     * @return the expression.
4888309Sphantom     */
4988309Sphantom    ExpressionTree getExpression();
5088309Sphantom
5188309Sphantom    /**
5288309Sphantom     * Returns the name of the member to be selected.
5388309Sphantom     * @return the member
54104711Stjr     */
55104711Stjr    Name getIdentifier();
56104711Stjr}
57104711Stjr