org.eclipse.emf.codegen.merge.java.facade.ast
Class ASTJInitializer

java.lang.Object
  extended byorg.eclipse.emf.codegen.merge.java.facade.AbstractJNode
      extended byorg.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode
          extended byorg.eclipse.emf.codegen.merge.java.facade.ast.ASTJMember
              extended byorg.eclipse.emf.codegen.merge.java.facade.ast.ASTJInitializer
All Implemented Interfaces:
JInitializer, JMember, JNode

public class ASTJInitializer
extends ASTJMember
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
ASTJInitializer(org.eclipse.jdt.core.dom.Initializer initializer)
           
 
Method Summary
protected  String computeQualifiedName()
           
protected  org.eclipse.jdt.core.dom.Initializer getASTInitializer()
           
 String getBody()
          Returns the body of this initializer.
 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.ast.ASTJMember
getASTBodyDeclaration, getComment, getFlags, setComment
 
Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode
getASTNode, getChildren, getContents, getContents, getParent, setFlags, toString
 
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
getComment, setComment
 
Methods inherited from interface org.eclipse.emf.codegen.merge.java.facade.JNode
getChildren, getContents, getFlags, getParent, getQualifiedName, setFlags
 

Constructor Detail

ASTJInitializer

public ASTJInitializer(org.eclipse.jdt.core.dom.Initializer initializer)
Method Detail

getASTInitializer

protected org.eclipse.jdt.core.dom.Initializer getASTInitializer()

getName

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

Specified by:
getName in interface JNode
Returns:
the name, or null if it has no name

computeQualifiedName

protected String computeQualifiedName()
Overrides:
computeQualifiedName in class AbstractJNode

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

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