|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JCompilationUnit
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.
Method Summary | |
---|---|
java.lang.String |
getHeader()
Returns the header comment for this compilation unit. |
void |
setHeader(java.lang.String header)
Sets the header comment for this compilation unit. |
Methods inherited from interface org.eclipse.emf.codegen.merge.java.facade.JNode |
---|
getChildren, getContents, getFlags, getName, getParent, getQualifiedName, setFlags, setName |
Method Detail |
---|
java.lang.String getHeader()
null
if
no header comment is presentvoid setHeader(java.lang.String header)
header
- the header comment for this compilation unit, or null
if
indicating no header comment
|
Copyright 2001-2012 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |