/******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package net.sourceforge.phpdt.core.jdom; /** * Represents an import declaration. The corresponding syntactic unit is * ImportDeclaration (JLS2 7.5). An import has no children and its parent is a * compilation unit. *
* This interface is not intended to be implemented by clients. *
*/ public interface IDOMImport extends IDOMNode { /** * TheIDOMImport
refinement of this IDOMNode
* method returns the name of this import. The syntax for an import name
* corresponds to a fully qualified type name, or to an on-demand package
* name as defined by ImportDeclaration (JLS2 7.5).
*/
public String getName();
/**
* Returns whether this import declaration ends with ".*"
.
*
* @return true
if this in an on-demand import
*/
public boolean isOnDemand();
/**
* The IDOMImport
refinement of this IDOMNode
* method sets the name of this import. The syntax for an import name
* corresponds to a fully qualified type name, or to an on-demand package
* name as defined by ImportDeclaration (JLS2 7.5).
*
* @exception IllegalArgumentException
* if null
is specified
*/
public void setName(String name);
}