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, wait
name
protected 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.IOException
public LocalSource(javax.tools.FileObject f, Kind kind, java.net.URI namespace, boolean publish) throws java.io.IOException
java.io.IOException
public java.net.URI namespace()
CodebaseSource
namespace
in interface CodebaseSource
public java.net.URI canonicalNamespace()
CodebaseSource
canonicalNamespace
in interface CodebaseSource
public boolean shouldPublish()
CodebaseSource
shouldPublish
in interface CodebaseSource
public void setPublish(boolean pub)
setPublish
in interface CodebaseSource
protected javax.tools.FileObject fileObject()
public Source derivedSource(java.lang.String name)
CodebaseSource
derivedSource
in interface CodebaseSource
public Source publishedSource(java.net.URI namespace, java.lang.String name)
CodebaseSource
publishedSource
in interface CodebaseSource
public Label label()
CodebaseSource
label
in interface CodebaseSource
public boolean equals(java.lang.Object o)
public int hashCode()
public void close() throws java.io.IOException
CodebaseSource
close
in interface CodebaseSource
java.io.IOException
public java.io.Reader open() throws java.io.IOException
CodebaseSource
open
in interface CodebaseSource
java.io.IOException