|
||||||||||||
| 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 | |
|---|---|
java.util.List |
getChildren()
Returns the children of this node. |
java.lang.String |
getContents()
Returns the current contents of this document fragment. |
int |
getFlags()
Returns the modifier flags for this node. |
java.lang.String |
getName()
Returns the name of this node. |
JNode |
getParent()
Returns the parent of this node. |
java.lang.String |
getQualifiedName()
Returns the qualified name of this node. |
void |
setFlags(int flags)
Sets the flags for this member. |
| Method Detail |
public java.lang.String getName()
null if it has no namepublic java.lang.String getQualifiedName()
public java.lang.String getContents()
Note: To obtain complete source for the ".java" file, ask a compilation unit node for its contents.
null if this node has no contentspublic int getFlags()
FacadeFlags.
public void setFlags(int flags)
FacadeFlags class.
flags - the flagspublic JNode getParent()
null if this node does not have a
parentpublic java.util.List getChildren()
The list must be unmodifiable if the implementation doesn't support direct manipulation.
|
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 | |||||||||||