Package | Description |
---|---|
org.netbeans.api.java.source |
Permits inspection and modification of the structure of Java sources.
|
Modifier and Type | Method and Description |
---|---|
static ClasspathInfo |
ClasspathInfo.create(ClassPath bootPath,
ClassPath classPath,
ClassPath sourcePath) |
static ClasspathInfo |
ClasspathInfo.create(Document doc)
Creates a new instance of the ClasspathInfo for given Document.
|
static ClasspathInfo |
ClasspathInfo.create(File file)
Creates new interface to the compiler
|
static ClasspathInfo |
ClasspathInfo.create(FileObject fo)
Creates new interface to the compiler
|
ClasspathInfo |
JavaSource.getClasspathInfo()
Returns the classpaths (
ClasspathInfo ) used by this
JavaSource |
ClasspathInfo |
CompilationInfo.getClasspathInfo()
Returns
ClasspathInfo for which this CompilationInfo was created. |
Modifier and Type | Method and Description |
---|---|
static JavaSource |
JavaSource.create(ClasspathInfo cpInfo,
Collection<? extends FileObject> files)
Returns a
JavaSource instance representing given FileObject s
and classpath represented by given ClasspathInfo . |
static JavaSource |
JavaSource.create(ClasspathInfo cpInfo,
FileObject... files)
Returns a
JavaSource instance representing given FileObject s
and classpath represented by given ClasspathInfo . |
static TreePathHandle |
TreePathHandle.from(ElementHandle<?> handle,
ClasspathInfo cpInfo)
Constructs a
TreePathHandle that corresponds to the given ElementHandle . |
static FileObject |
SourceUtils.getFile(Element element,
ClasspathInfo cpInfo)
Deprecated.
|
static FileObject |
SourceUtils.getFile(ElementHandle<? extends Element> handle,
ClasspathInfo cpInfo)
Returns a
FileObject of the source file in which the handle is declared. |
static URL |
SourceUtils.getJavadoc(Element element,
ClasspathInfo cpInfo)
Finds
URL of a javadoc page for given element when available. |
static boolean |
SourceUtils.isMainClass(String qualifiedName,
ClasspathInfo cpInfo)
Returns true when the class contains main method.
|
static boolean |
SourceUtils.isMainClass(String qualifiedName,
ClasspathInfo cpInfo,
boolean optimistic)
Returns true when the class contains main method.
|
static boolean |
UiUtils.open(ClasspathInfo cpInfo,
Element el)
Deprecated.
Use
org.netbeans.api.java.source.ui.ElementOpen#open(org.netbeans.api.java.source.ClasspathInfo, org.netbeans.api.java.source.ElementHandle)
of the org.netbeans.modules.java.sourceui module |
Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.