public class LocalSource extends UTF8FileSource implements CodebaseSource
| Modifier and Type | Field and Description |
|---|---|
protected java.net.URI |
namespace |
protected boolean |
publish |
protected java.io.Reader |
reader |
| Constructor and Description |
|---|
LocalSource(javax.tools.FileObject f,
Kind kind,
java.net.URI namespace) |
LocalSource(javax.tools.FileObject f,
Kind kind,
java.net.URI namespace,
boolean publish) |
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
canonicalNamespace()
The canonical namespace of source is the namespace its dependencies are
resolved in.
|
void |
close()
Close the source file.
|
Source |
derivedSource(java.lang.String name)
Some compiler jobs are dynamically generated during compiling a resource,
but are not directly stored in the resource.
|
boolean |
equals(java.lang.Object o)
Sources are equal to each other if they refer to the same resource.
|
protected javax.tools.FileObject |
fileObject() |
int |
hashCode() |
Label |
label()
The label of this source file.
|
java.net.URI |
namespace()
The namespace loading this source.
|
java.io.Reader |
open()
Open the source file.
|
Source |
publishedSource(java.net.URI namespace,
java.lang.String name)
Create a derived source object with a new namespace and short name.
|
void |
setPublish(boolean pub) |
boolean |
shouldPublish()
Whether a new class object should be published for this source file and
associated with the codebase representing the namespace.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitnameprotected java.net.URI namespace
protected boolean publish
protected java.io.Reader reader
public LocalSource(javax.tools.FileObject f,
Kind kind,
java.net.URI namespace)
throws java.io.IOException
java.io.IOExceptionpublic LocalSource(javax.tools.FileObject f,
Kind kind,
java.net.URI namespace,
boolean publish)
throws java.io.IOException
java.io.IOExceptionpublic java.net.URI namespace()
CodebaseSourcenamespace in interface CodebaseSourcepublic java.net.URI canonicalNamespace()
CodebaseSourcecanonicalNamespace in interface CodebaseSourcepublic boolean shouldPublish()
CodebaseSourceshouldPublish in interface CodebaseSourcepublic void setPublish(boolean pub)
setPublish in interface CodebaseSourceprotected javax.tools.FileObject fileObject()
public Source derivedSource(java.lang.String name)
CodebaseSourcederivedSource in interface CodebaseSourcepublic Source publishedSource(java.net.URI namespace,
java.lang.String name)
CodebaseSourcepublishedSource in interface CodebaseSourcepublic Label label()
CodebaseSourcelabel in interface CodebaseSourcepublic boolean equals(java.lang.Object o)
public int hashCode()
public void close()
throws java.io.IOException
CodebaseSourceclose in interface CodebaseSourcejava.io.IOExceptionpublic java.io.Reader open()
throws java.io.IOException
CodebaseSourceopen in interface CodebaseSourcejava.io.IOException