org.eclipse.emf.codegen.merge.java.facade
Interface JCompilationUnit
- All Superinterfaces:
- JNode
- All Known Implementing Classes:
- JDOMJCompilationUnit
- public interface JCompilationUnit
- extends JNode
Represents an entire Java compilation unit (.java source file).
Compilation unit elements need to be opened before they can be navigated.
The children are of type JPackage, JImport,
and JType, and appear in the order in which they are declared in the source.
If a .java file cannot be parsed, its structure remains unknown.
Use JNode#isStructureKnown to determine whether this is
the case.
- Since:
- 2.2.0
|
Method Summary |
String |
getHeader()
Returns the header comment for this compilation unit. |
getHeader
public String getHeader()
- Returns the header comment for this compilation unit. The header comment
appears before the first declaration in a compilation unit.
- Returns:
- the header comment for this compilation unit, or
null if
no header comment is present