Package | Description |
---|---|
org.netbeans.api.java.source |
Permits inspection and modification of the structure of Java sources.
|
Modifier and Type | Method and Description |
---|---|
static JavaSource |
JavaSource.create(ClasspathInfo cpInfo,
FileObject> files)
Returns a
FileObject s
and classpath represented by given ClasspathInfo . |
static JavaSource |
JavaSource.create(ClasspathInfo cpInfo,
FileObject... files)
Returns a
FileObject s
and classpath represented by given ClasspathInfo . |
static JavaSource |
JavaSource.forDocument(Document doc)
Returns a
JavaSource instance associated to the given Document ,
it returns null if the Document is not
associated with data type providing the JavaSource . |
static JavaSource |
JavaSource.FileObject fileObject)
Returns a
FileObject ,
it returns null if the Document is not associated with data type providing the JavaSource . |
JavaSource |
CompilationInfo.getJavaSource()
Deprecated.
Works only when the CompilationInfo was created by JavaSource using
the compatibility bridge, when the CompilationInfo was created by the parsing api
it returns null. Use
CompilationInfo.getSnapshot() instead. |
Modifier and Type | Method and Description |
---|---|
static Future<Void> |
ScanUtils.postUserActionTask(JavaSource src,
Task<CompilationController> uat)
Runs the user task through
JavaSource.runUserActionTask(org.netbeans.api.java.source.Task<org.netbeans.api.java.source.CompilationController>, boolean) , and returns Future completion handle for it. |
static void |
ScanUtils.waitUserActionTask(JavaSource src,
Task<CompilationController> uat)
Runs user action over source 'src' using
JavaSource.runUserActionTask(org.netbeans.api.java.source.Task<org.netbeans.api.java.source.CompilationController>, boolean) and waits for its completion. |