Package | Description |
---|---|
org.netbeans.api.java.source |
Permits inspection and modification of the structure of Java sources.
|
org.netbeans.api.java.source.support |
Modifier and Type | Method and Description |
---|---|
ClasspathInfo |
ClasspathInfo.Builder.build()
Creates a new
ClasspathInfo . |
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 |
CompilationInfo.getClasspathInfo()
Returns
ClasspathInfo for which this CompilationInfo was created. |
ClasspathInfo |
ClasspathInfo.Provider.getClasspathInfo() |
ClasspathInfo |
JavaSource.getClasspathInfo()
Returns the classpaths (
ClasspathInfo ) used by this
JavaSource |
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)
|
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.
|
Modifier and Type | Method and Description |
---|---|
static ReferencesCount |
ReferencesCount.get(ClasspathInfo cpInfo)
Creates a
ReferencesCount for source classpath represented by given
ClasspathInfo . |