Schnittstelle IDOMImport

Alle Superschnittstellen:
Cloneable, IDOMNode

public interface IDOMImport extends IDOMNode
Veraltet.
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.
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.
  • Methodendetails

    • getName

      String getName()
      Veraltet.
      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).
      Angegeben von:
      getName in Schnittstelle IDOMNode
      Gibt zurück:
      the name of this import
    • isOnDemand

      boolean isOnDemand()
      Veraltet.
      Returns whether this import declaration ends with ".*".
      Gibt zurück:
      true if this in an on-demand import
    • getFlags

      int getFlags()
      Veraltet.
      Returns the modifier flags for this import. The flags can be examined using class Flags. Only the static flag is meaningful for import declarations.
      Gibt zurück:
      the modifier flags for this import
      Seit:
      3.0
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.core.Flags
    • setFlags

      void setFlags(int flags)
      Veraltet.
      Sets the modifier flags for this import. The flags can be examined using class Flags. Only the static flag is meaningful for import declarations.
      Parameter:
      flags - the modifier flags for this import
      Seit:
      3.0
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.core.Flags
    • setName

      void setName(String name)
      Veraltet.
      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).
      Angegeben von:
      setName in Schnittstelle IDOMNode
      Parameter:
      name - the given name
      Löst aus:
      IllegalArgumentException - if null is specified