Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.jdt.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.

Deprecated:
The JDOM was made obsolete by the addition in 2.0 of the more powerful, fine-grained DOM/AST API found in the org.eclipse.jdt.core.dom package.
Noimplement:
This interface is not intended to be implemented by clients.
public interface IDOMImport extends IDOMNode {
The IDOMImport 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).

Returns:
the name of this import
public String getName();
Returns whether this import declaration ends with ".*".

Returns:
true if this in an on-demand import
public boolean isOnDemand();

Returns the modifier flags for this import. The flags can be examined using class Flags. Only the static flag is meaningful for import declarations.

Returns:
the modifier flags for this import
Since:
3.0
See also:
org.eclipse.jdt.core.Flags
int getFlags();

Sets the modifier flags for this import. The flags can be examined using class Flags. Only the static flag is meaningful for import declarations.

Parameters:
flags the modifier flags for this import
Since:
3.0
See also:
org.eclipse.jdt.core.Flags
void setFlags(int flags);

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).

Parameters:
name the given name
Throws:
java.lang.IllegalArgumentException if null is specified
public void setName(String name);
New to GrepCode? Check out our FAQ X