|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
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()
List of ImportTs.
java.util.Set getImportNames()
Set of Strings.
java.util.List getClasses()
List of ClassTs.
ClassT getClass(java.lang.String name)
ClassT getPrimaryClass()
The term "primary class" is not actually used in any reference I tried: JLS, JPL, or Effective Java. It does see some usage on the web. The term "main class" could be confused with the run-time class whose "main(...)" method is being run.
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 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |