|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileT
The root of a source file, also called a compilation unit. From the root, a client may retrieve the package declaration, the import declarations, and all top-level type declarations.
Field Summary |
---|
Fields inherited from interface javax.ide.model.java.source.tree.Tree |
---|
EMPTY_ARRAY |
Method Summary | |
---|---|
TreeTransaction |
beginTransaction()
Begins a single-tree transaction. |
void |
clearAllProperties(java.lang.String key)
Traverses the entire parse tree, calling setProperty(key, null) on each element. |
ClassT |
getClass(java.lang.String name)
Gets the matching top-level source class. |
java.util.List |
getClasses()
Gets the list of top-level source classes. |
TreeFactory |
getFactory()
Gets the factory to create Tree objects in this FileT. |
java.util.Set |
getImportNames()
Gets the set of import strings. |
java.util.List |
getImports()
Gets the list of import declarations. |
JavaModel |
getOwningModel()
Gets the owning JavaModel. |
PackageT |
getPackage()
Gets the package declaration. |
java.lang.String |
getPackageName()
Gets the package name, empty if none. |
ClassT |
getPrimaryClass()
Gets the primary class. |
TreeTransaction |
getTransaction()
Gets the in-progress single-tree transaction, null if none. |
java.net.URI |
getURI()
Gets the URI of this file, null if none. |
void |
setPackage(PackageT packageD)
Attempts to set the package declaration. |
void |
setPackageName(java.lang.String packageName)
Attempts to set the name of the package declaration. |
Methods inherited from interface javax.ide.model.java.source.tree.Tree |
---|
accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty |
Method Detail |
---|
PackageT getPackage()
java.lang.String getPackageName()
void setPackage(PackageT packageD)
void setPackageName(java.lang.String packageName)
java.util.List getImports()
java.util.Set getImportNames()
java.util.List getClasses()
ClassT getClass(java.lang.String name)
ClassT getPrimaryClass()
void clearAllProperties(java.lang.String key)
setProperty(key, null)
on each element.
TreeFactory getFactory()
java.net.URI getURI()
JavaModel getOwningModel()
TreeTransaction beginTransaction()
TreeTransaction getTransaction()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |