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,
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 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.forFileObject(FileObject fileObject)
Returns a
JavaSource instance associated to given 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. |
Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.