org.eclipse.emf.codegen.merge.java.facade.ast
Class ASTJCompilationUnit
java.lang.Object
org.eclipse.emf.codegen.merge.java.facade.AbstractJNode
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJCompilationUnit
- All Implemented Interfaces:
- JCompilationUnit, JNode
- public class ASTJCompilationUnit
- extends ASTJNode
- implements JCompilationUnit
- Since:
- 2.2.0
Constructor Summary |
ASTJCompilationUnit(org.eclipse.jdt.core.dom.CompilationUnit compilationUnit)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERY_NAME
public static final String PROPERY_NAME
- See Also:
- Constant Field Values
originalContents
protected char[] originalContents
ASTJCompilationUnit
public ASTJCompilationUnit(org.eclipse.jdt.core.dom.CompilationUnit compilationUnit)
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