1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.core.jdom;
14 * Represents an import declaration.
15 * The corresponding syntactic unit is ImportDeclaration (JLS2 7.5).
16 * An import has no children and its parent is a compilation unit.
18 * This interface is not intended to be implemented by clients.
21 public interface IDOMImport extends IDOMNode {
23 * The <code>IDOMImport</code> refinement of this <code>IDOMNode</code>
24 * method returns the name of this import. The syntax for an import name
25 * corresponds to a fully qualified type name, or to an on-demand package name
26 * as defined by ImportDeclaration (JLS2 7.5).
28 public String getName();
30 * Returns whether this import declaration ends with <code>".*"</code>.
32 * @return <code>true</code> if this in an on-demand import
34 public boolean isOnDemand();
36 * The <code>IDOMImport</code> refinement of this <code>IDOMNode</code>
37 * method sets the name of this import. The syntax for an import name
38 * corresponds to a fully qualified type name, or to an on-demand package name
39 * as defined by ImportDeclaration (JLS2 7.5).
41 * @exception IllegalArgumentException if <code>null</code> is specified
43 public void setName(String name);