public class RemoteSource extends UTF8FileSource implements CodebaseSource
Modifier and Type | Field and Description |
---|---|
protected FClass |
fcls |
protected java.net.URI |
namespace |
protected boolean |
publish |
protected java.io.Reader |
reader |
Constructor and Description |
---|
RemoteSource(javax.tools.FileObject fo,
FClass fcls,
Kind kind) |
RemoteSource(javax.tools.FileObject fo,
FClass fcls,
Kind kind,
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.
|
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.
|
java.lang.String |
path() |
Source |
publishedSource(java.net.URI ns,
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.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
name
protected final java.net.URI namespace
protected final FClass fcls
protected boolean publish
protected java.io.Reader reader
public RemoteSource(javax.tools.FileObject fo, FClass fcls, Kind kind) throws java.io.IOException
java.io.IOException
public RemoteSource(javax.tools.FileObject fo, FClass fcls, Kind kind, boolean publish) throws java.io.IOException
java.io.IOException
public boolean shouldPublish()
CodebaseSource
shouldPublish
in interface CodebaseSource
public void close() throws java.io.IOException
CodebaseSource
close
in interface CodebaseSource
java.io.IOException
public boolean equals(java.lang.Object o)
public int hashCode()
public java.net.URI namespace()
CodebaseSource
namespace
in interface CodebaseSource
public java.net.URI canonicalNamespace()
CodebaseSource
canonicalNamespace
in interface CodebaseSource
public Source derivedSource(java.lang.String name)
CodebaseSource
derivedSource
in interface CodebaseSource
public Source publishedSource(java.net.URI ns, java.lang.String name)
CodebaseSource
publishedSource
in interface CodebaseSource
public Label label()
CodebaseSource
label
in interface CodebaseSource
public void setPublish(boolean pub)
setPublish
in interface CodebaseSource
public java.io.Reader open() throws java.io.IOException
CodebaseSource
open
in interface CodebaseSource
java.io.IOException
public java.lang.String path()
public java.lang.String toString()