public class JDOMJInitializer extends JDOMJMember implements JInitializer
EMPTY_STRING_ARRAY, qualifiedName
Constructor and Description |
---|
JDOMJInitializer(IDOMInitializer initializer) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
computeQualifiedName() |
java.lang.String |
getBody()
Returns the body of this initializer.
|
java.lang.String |
getComment()
Returns the comment associated with this member (including comment delimiters).
|
java.lang.String |
getContents()
Returns the current contents of this document fragment.
|
java.lang.String |
getName()
Returns the name of this node.
|
protected IDOMInitializer |
getWrappedObject() |
void |
setBody(java.lang.String body)
Sets the body of this initializer.
|
getFlags, setComment, setFlags, splitLastComment
dispose, getChildren, getFacadeHelper, getParent, isDisposed, setFacadeHelper, setName
computeQualifiedName, computeQualifiedName, computeQualifiedName, getName, getQualifiedName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setComment
getChildren, getFlags, getParent, getQualifiedName, setFlags, setName
public JDOMJInitializer(IDOMInitializer initializer)
initializer
- protected IDOMInitializer getWrappedObject()
getWrappedObject
in class JDOMJMember
public java.lang.String getBody()
JInitializer
getBody
in interface JInitializer
null
if
no body is presentpublic void setBody(java.lang.String body)
JInitializer
setBody
in interface JInitializer
body
- an initializer body, including braces, or null
indicating no bodypublic java.lang.String getName()
JNode
protected java.lang.String computeQualifiedName()
computeQualifiedName
in class AbstractJNode
public java.lang.String getComment()
JMember
getComment
in interface JMember
getComment
in class JDOMJMember
null
if this member has no associated
commentpublic java.lang.String getContents()
JNode
Note: To obtain complete source for the ".java" file, ask a compilation unit node for its contents.
getContents
in interface JNode
getContents
in class JDOMJMember
null
if this node has no contents