Schnittstelle IDOMCompilationUnit
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 a Java compilation unit (source file with one of the
Java-like extensions
).
The corresponding syntactic unit is CompilationUnit (JLS2 7.3).
Allowable child types for a compilation unit are IDOMPackage
, IDOMImport
,
and IDOMType
.-
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 TypMethodeBeschreibungVeraltet.Returns the header comment for this compilation unit.getName()
Veraltet.TheIDOMCompilationNode
refinement of thisIDOMNode
method returns the name of this compilation unit.void
Veraltet.Sets the header comment for this compilation unit.void
Veraltet.TheIDOMCompilationNode
refinement of thisIDOMNode
method has no effect (the name is computed from the types declared within it).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
-
getHeader
String getHeader()Veraltet.Returns the header comment for this compilation unit. The header comment appears before the first declaration in a compilation unit. The syntax for a comment corresponds to Comments (JLS2 3.7), including comment delimiters.- Gibt zurück:
- the header comment for this compilation unit, or
null
if no header comment is present
-
getName
String getName()Veraltet.TheIDOMCompilationNode
refinement of thisIDOMNode
method returns the name of this compilation unit.The name of a compilation unit is the name of the first top-level public type defined in the compilation unit, suffixed with one of the
Java-like extensions
. For example, if the first top-level public type defined in this compilation unit has the name "Hanoi", then name of this compilation unit is "Hanoi.java".In the absence of a public top-level type, the name of the first top-level type is used. In the absence of any type, the name of the compilation unit is
null
. -
setHeader
Veraltet.Sets the header comment for this compilation unit. The header comment appears before the first declaration in a compilation unit. The syntax for a comment corresponds to Comments (JLS2 3.7), including comment delimiters.- Parameter:
comment
- the header comment for this compilation unit, ornull
if indicating no header comment
-
setName
Veraltet.TheIDOMCompilationNode
refinement of thisIDOMNode
method has no effect (the name is computed from the types declared within it).
-