public interface JNode
.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.| Modifier and Type | Method and Description |
|---|---|
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.
|
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 © 2019. Licensed under the Eclipse Public License v2.0. All rights reserved.
Submit a bug or feature