org.eclipse.emf.codegen.merge.java.facade.jdom
Class JDOMJInitializer

java.lang.Object
  extended byorg.eclipse.emf.codegen.merge.java.facade.AbstractJNode
      extended byorg.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJNode
          extended byorg.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJMember
              extended byorg.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJInitializer
All Implemented Interfaces:
JInitializer, JMember, JNode

public class JDOMJInitializer
extends JDOMJMember
implements JInitializer

Since:
2.2.0

Field Summary
 
Fields inherited from class org.eclipse.emf.codegen.merge.java.facade.AbstractJNode
EMPTY_STRING_ARRAY, facadeHelper, qualifiedName, wrappedObject
 
Constructor Summary
JDOMJInitializer(org.eclipse.jdt.core.jdom.IDOMInitializer initializer)
           
 
Method Summary
protected  String computeQualifiedName()
           
 String getBody()
          Returns the body of this initializer.
 String getComment()
          Returns the comment associated with this member (including comment delimiters).
 String getContents()
          Returns the current contents of this document fragment.
protected  org.eclipse.jdt.core.jdom.IDOMInitializer getIDOMInitializer()
           
 String getName()
          Returns the name of this node.
 void setBody(String body)
          Sets the body of this initializer.
 
Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJMember
getFlags, getIDOMMember, setComment, setFlags, splitLastComment
 
Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJNode
getChildren, getIDOMNode, getParent
 
Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.AbstractJNode
computeQualifiedName, computeQualifiedName, computeQualifiedName, dispose, getFacadeHelper, getName, getQualifiedName, getWrappedObject, setFacadeHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.codegen.merge.java.facade.JMember
setComment
 
Methods inherited from interface org.eclipse.emf.codegen.merge.java.facade.JNode
getChildren, getFlags, getParent, getQualifiedName, setFlags
 

Constructor Detail

JDOMJInitializer

public JDOMJInitializer(org.eclipse.jdt.core.jdom.IDOMInitializer initializer)
Parameters:
initializer -
Method Detail

getIDOMInitializer

protected org.eclipse.jdt.core.jdom.IDOMInitializer getIDOMInitializer()

getBody

public String getBody()
Description copied from interface: JInitializer
Returns the body of this initializer. The syntax for a body corresponds to InstanceInitializer (JLS2 8.6) and StaticDeclaration (JLS2 8.7).

Specified by:
getBody in interface JInitializer
Returns:
an initializer body, including braces, or null if no body is present

setBody

public void setBody(String body)
Description copied from interface: JInitializer
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.

Specified by:
setBody in interface JInitializer
Parameters:
body - an initializer body, including braces, or null indicating no body

getName

public String getName()
Description copied from interface: JNode
Returns the name of this node.

Specified by:
getName in interface JNode
Overrides:
getName in class JDOMJNode

computeQualifiedName

protected String computeQualifiedName()
Overrides:
computeQualifiedName in class AbstractJNode

getComment

public String getComment()
Description copied from interface: JMember
Returns the comment associated with this member (including comment delimiters).

Specified by:
getComment in interface JMember
Overrides:
getComment in class JDOMJMember

getContents

public String getContents()
Description copied from interface: JNode
Returns the current contents of this document fragment.

Note: To obtain complete source for the ".java" file, ask a compilation unit node for its contents.

Specified by:
getContents in interface JNode
Overrides:
getContents in class JDOMJMember

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.