|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
String |
getHeader()
Returns the header comment for this compilation unit. |
void |
setHeader(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 |
Method Detail |
public String getHeader()
null
if
no header comment is presentpublic void setHeader(String header)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |