|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The JotWorkArea
represents a group of compilation units, and/or
sub-JotWorkArea
s. It contains retrieval methods that operate
within this work area's classpath or sourcepath scope. Work areas are parents
of elements the contain.Work areas can be obtained by calling
Jot.getWorkArea(String name)
.
This interface is not intended to be implemented by clients.
Field Summary |
Fields inherited from interface oracle.ide.addin.Subject |
OBJECT_MODIFIED |
Method Summary | |
void |
addChild(JotElement childElement)
Adds the given JotElement as a child of this model. |
void |
addLibrary(JotLibrary library)
|
java.lang.ClassLoader |
getClassLoader()
Retrieves the ClassLoader associated with this JotWorkArea . |
JotFile |
getFile(java.lang.String filename)
Retrieves the JotFile representing a specific file. |
JotFile |
getFile(java.net.URL url)
Retrieves the JotFile representing a file located at a
specific URL . |
java.util.Iterator |
getFileList(java.lang.String pkgName,
int needs)
Retrieves a list of classes available in a package |
JotLibrary |
getLibraryByName(java.lang.String libraryName)
|
java.net.URL |
getURL(java.lang.String clsName,
int needs)
Retrieves the URL of the file containing the desired class. |
java.net.URL |
getURL(java.lang.String fileName,
java.lang.String pkgName,
int needs)
Retrieves the URL of a specified file. |
java.lang.Class |
loadClass(java.lang.String className,
boolean resolve)
Loads a class from the JotWorkArea 's classpath |
void |
removeChild(JotElement childElement)
Removes the given JotElement from the list of children in
this model. |
void |
removeLibrary(JotLibrary library)
|
void |
removeLibraryByName(java.lang.String libraryName)
|
void |
setLibraryList(JotLibrary[] libraryList)
|
Methods inherited from interface oracle.jdeveloper.jot.JotElement |
getChildren, getContainedElements, getElementName, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
Methods inherited from interface oracle.jdeveloper.jot.JotManipulations |
copy, findAllFieldReferences, findAllFileReferences, findAllMethodReferences, findAllReferences, move |
Methods inherited from interface oracle.jdeveloper.jot.JotClassDatabase |
getAllClassDescriptors, getAllClassDescriptors, getClass, getClassList, getClassNameList, getJotTypeInfo, getPackage, getPackageList, getPackages, getType |
Methods inherited from interface oracle.ide.addin.Subject |
attach, detach, notifyObservers |
Method Detail |
public java.lang.Class loadClass(java.lang.String className, boolean resolve) throws java.lang.ClassNotFoundException
JotWorkArea
's classpath
resolve
- whether to resolve the class once it is loaded.
java.lang.Class
instance representing the
class, or null
if the class cannot be loaded.
java.lang.ClassNotFoundException
- if the class cannot be loaded.public JotFile getFile(java.lang.String filename)
JotFile
representing a specific file.
filename
- the absolute path to the desired file.
JotFile
representing the given file.public JotFile getFile(java.net.URL url)
JotFile
representing a file located at a
specific URL
.
url
- the URL
indicating the location of the file.
JotFile
representing the given location.public java.net.URL getURL(java.lang.String clsName, int needs)
URL
of the file containing the desired class.
clsName
- the fully qualified class name.needs
- a description of what type of files to find -
sources or class files.
URL
representing the file containing the class, or
null if it could not be found.public java.net.URL getURL(java.lang.String fileName, java.lang.String pkgName, int needs)
URL
of a specified file.
fileName
- the name of the file (for example, Class1.java
).pkgName
- the name of the package containing the file.needs
- whether to check the sourcepath or the classpath.
URL
representing the file, or null if the file cannot be
found.public java.util.Iterator getFileList(java.lang.String pkgName, int needs)
pkgName
- the name of the package for which files are requested.needs
- the type of classes to list: sourcepath classes,
classpath classes, or both.
#PREFER_SOURCE
,
#PREFER_CLASS
,
#NEED_SOURCE
,
#NEED_CLASS
public java.lang.ClassLoader getClassLoader()
JotWorkArea
.
public void addChild(JotElement childElement)
JotElement
as a child of this model.
public void removeChild(JotElement childElement)
JotElement
from the list of children in
this model.
public void setLibraryList(JotLibrary[] libraryList)
public JotLibrary getLibraryByName(java.lang.String libraryName)
public void addLibrary(JotLibrary library)
public void removeLibrary(JotLibrary library)
public void removeLibraryByName(java.lang.String libraryName)
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.