Interface IDOMInitializer
- All Superinterfaces:
Cloneable
,IDOMMember
,IDOMNode
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.aspectj.org.eclipse.jdt.core.dom package.
Represents an initializer. The corresponding syntactic
units are InstanceInitializer (JLS2 8.6) and StaticDeclaration (JLS2 8.7).
An initializer has no children and its parent is a type.
-
Field Summary
Fields inherited from interface org.aspectj.org.eclipse.jdt.core.jdom.IDOMNode
COMPILATION_UNIT, FIELD, IMPORT, INITIALIZER, METHOD, PACKAGE, TYPE
-
Method Summary
Modifier and TypeMethodDescriptiongetBody()
Deprecated.Returns the body of this initializer.getName()
Deprecated.TheIDOMInitializer
refinement of thisIDOMNode
method returnsnull
.void
Deprecated.Sets the body of this initializer.void
Deprecated.TheIDOMInitializer
refinement of thisIDOMNode
method does nothing.Methods inherited from interface org.aspectj.org.eclipse.jdt.core.jdom.IDOMMember
getComment, getFlags, setComment, setFlags
Methods inherited from interface 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
-
Method Details
-
getBody
String getBody()Deprecated.Returns the body of this initializer. The syntax for a body corresponds to InstanceInitializer (JLS2 8.6) and StaticDeclaration (JLS2 8.7).- Returns:
- an initializer body, including braces, or
null
if no body is present
-
getName
String getName()Deprecated.TheIDOMInitializer
refinement of thisIDOMNode
method returnsnull
. An initializer does not have a name. -
setBody
Deprecated.Sets the body of this initializer. The syntax for a body corresponds to InstanceInitializer (JLS2 8.6) and StaticDeclaration (JLS2 8.7). No formatting or syntax checking is performed on the body. Braces must be included.- Parameters:
body
- an initializer body, including braces, ornull
indicating no body
-
setName
Deprecated.TheIDOMInitializer
refinement of thisIDOMNode
method does nothing.
-