ImportTree.java revision 3193:3b3bea483542
1267756Sache/* 2104128Seric * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. 3104128Seric * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4126189Sache * 5126189Sache * This code is free software; you can redistribute it and/or modify it 6126189Sache * under the terms of the GNU General Public License version 2 only, as 7126189Sache * published by the Free Software Foundation. Oracle designates this 8126189Sache * particular file as subject to the "Classpath" exception as provided 9126189Sache * by Oracle in the LICENSE file that accompanied this code. 10126189Sache * 11126189Sache * This code is distributed in the hope that it will be useful, but WITHOUT 12126189Sache * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13126189Sache * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14126189Sache * version 2 for more details (a copy is included in the LICENSE file that 15126189Sache * accompanied this code). 16126189Sache * 17126189Sache * You should have received a copy of the GNU General Public License version 18126189Sache * 2 along with this work; if not, write to the Free Software Foundation, 19126189Sache * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20126189Sache * 21126189Sache * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22126189Sache * or visit www.oracle.com if you need additional information or have any 23104128Seric * questions. 24104128Seric */ 25104128Seric 26104128Sericpackage com.sun.source.tree; 27104128Seric 28104128Seric/** 29104128Seric * A tree node for an import statement. 30104128Seric * 31104128Seric * For example: 32104128Seric * <pre> 33104128Seric * import <em>qualifiedIdentifier</em> ; 34104128Seric * 35104128Seric * static import <em>qualifiedIdentifier</em> ; 36104128Seric * </pre> 37104128Seric * 38104128Seric * @jls section 7.5 39104128Seric * 40104128Seric * @author Peter von der Ahé 41104128Seric * @author Jonathan Gibbons 42104128Seric * @since 1.6 43104128Seric */ 44104128Sericpublic interface ImportTree extends Tree { 45104128Seric /** 46104128Seric * Returns true if this is a static import declaration. 47104128Seric * @return true if this is a static import 48104128Seric */ 49104128Seric boolean isStatic(); 50104128Seric 51104128Seric /** 52126189Sache * Returns the qualified identifier for the declaration(s) 53104128Seric * being imported. 54126189Sache * If this is an import-on-demand declaration, the 55104128Seric * qualified identifier will end in "*". 56126189Sache * @return a qualified identifier, ending in "*" if and only if 57126189Sache * this is an import-on-demand 58126189Sache */ 59104128Seric Tree getQualifiedIdentifier(); 60104128Seric} 61104128Seric