Schnittstelle IDOMImport
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.aspectj.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.
-
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.jdom.IDOMNode
COMPILATION_UNIT, FIELD, IMPORT, INITIALIZER, METHOD, PACKAGE, TYPE
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
getFlags()
Veraltet.Returns the modifier flags for this import.getName()
Veraltet.TheIDOMImport
refinement of thisIDOMNode
method returns the name of this import.boolean
Veraltet.Returns whether this import declaration ends with"
void
setFlags
(int flags) Veraltet.Sets the modifier flags for this import.void
Veraltet.TheIDOMImport
refinement of thisIDOMNode
method sets the name of this import.Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.jdom.IDOMNode
addChild, canHaveChildren, clone, getCharacters, getChild, getChildren, getContents, getFirstChild, getJavaElement, getNextNode, getNodeType, getParent, getPreviousNode, insertSibling, isAllowableChild, isSignatureEqual, remove
-
Methodendetails
-
getName
String getName()Veraltet.TheIDOMImport
refinement of thisIDOMNode
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). -
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 classFlags
. Only the static flag is meaningful for import declarations.- Gibt zurück:
- the modifier flags for this import
- Seit:
- 3.0
- Siehe auch:
-
setFlags
void setFlags(int flags) Veraltet.Sets the modifier flags for this import. The flags can be examined using classFlags
. Only the static flag is meaningful for import declarations.- Parameter:
flags
- the modifier flags for this import- Seit:
- 3.0
- Siehe auch:
-
setName
Veraltet.TheIDOMImport
refinement of thisIDOMNode
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 SchnittstelleIDOMNode
- Parameter:
name
- the given name- Löst aus:
IllegalArgumentException
- ifnull
is specified
-