org.eclipse.emf.codegen.merge.java.facade.jdom
Class JDOMJCompilationUnit
java.lang.Object
org.eclipse.emf.codegen.merge.java.facade.AbstractJNode
org.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJNode
org.eclipse.emf.codegen.merge.java.facade.jdom.JDOMJCompilationUnit
- All Implemented Interfaces:
- JCompilationUnit, JNode
- public class JDOMJCompilationUnit
- extends JDOMJNode
- implements JCompilationUnit
- Since:
- 2.2.0
Constructor Summary |
JDOMJCompilationUnit(org.eclipse.jdt.core.jdom.IDOMCompilationUnit compilationUnit)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDOMJCompilationUnit
public JDOMJCompilationUnit(org.eclipse.jdt.core.jdom.IDOMCompilationUnit compilationUnit)
getIDOMCompilationUnit
protected org.eclipse.jdt.core.jdom.IDOMCompilationUnit getIDOMCompilationUnit()
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