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

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.ASTJCompilationUnit
All Implemented Interfaces:
JCompilationUnit, JNode

public class ASTJCompilationUnit
extends ASTJNode
implements JCompilationUnit

Since:
2.2.0

Field Summary
protected  char[] originalContents
           
static String PROPERY_NAME
           
 
Fields inherited from class org.eclipse.emf.codegen.merge.java.facade.AbstractJNode
EMPTY_STRING_ARRAY, facadeHelper, qualifiedName, wrappedObject
 
Constructor Summary
ASTJCompilationUnit(org.eclipse.jdt.core.dom.CompilationUnit compilationUnit)
           
 
Method Summary
protected  String computeQualifiedName()
           
protected  org.eclipse.jdt.core.dom.CompilationUnit getASTCompilationUnit()
           
 List getChildren()
          Returns the children of this node.
 String getHeader()
          Returns the header comment for this compilation unit.
 String getName()
          Returns the name of this node.
 char[] getOriginalContents()
           
 void setHeader(String header)
          Sets the header comment for this compilation unit.
 void setOriginalContents(char[] originalContents)
           
 
Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode
getASTNode, getContents, getContents, getFlags, 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.JNode
getContents, getFlags, getParent, getQualifiedName, setFlags
 

Field Detail

PROPERY_NAME

public static final String PROPERY_NAME
See Also:
Constant Field Values

originalContents

protected char[] originalContents
Constructor Detail

ASTJCompilationUnit

public ASTJCompilationUnit(org.eclipse.jdt.core.dom.CompilationUnit compilationUnit)
Method Detail

getASTCompilationUnit

protected org.eclipse.jdt.core.dom.CompilationUnit getASTCompilationUnit()

setOriginalContents

public void setOriginalContents(char[] originalContents)

getOriginalContents

public char[] getOriginalContents()

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

getChildren

public List getChildren()
Description copied from interface: JNode
Returns the children of this node. Returns an empty list if this node has no children (including nodes that cannot have children). Children appear in the order in which they are declared in the source code.

The list must be unmodifiable if the implementation doesn't support direct manipulation.

Specified by:
getChildren in interface JNode
Overrides:
getChildren in class ASTJNode

computeQualifiedName

protected String computeQualifiedName()
Overrides:
computeQualifiedName in class AbstractJNode

getHeader

public String getHeader()
Description copied from interface: JCompilationUnit
Returns the header comment for this compilation unit. The header comment appears before the first declaration in a compilation unit.

Specified by:
getHeader in interface JCompilationUnit
Returns:
the header comment for this compilation unit, or null if no header comment is present

setHeader

public void setHeader(String header)
Description copied from interface: JCompilationUnit
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.

Specified by:
setHeader in interface JCompilationUnit

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