|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface 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.
Method Summary | |
---|---|
java.util.List<JNode> |
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. |
void |
setName(java.lang.String name)
Sets the name of this node. |
Method Detail |
---|
java.lang.String getName()
null
if it has no namevoid setName(java.lang.String name)
name
- getQualifiedName()
java.lang.String getQualifiedName()
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 contentsint getFlags()
FacadeFlags
.
void setFlags(int flags)
FacadeFlags
class.
flags
- the flagsJNode getParent()
null
if this node does not have a
parentjava.util.List<JNode> 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 |