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, waitnameprotected 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.IOExceptionpublic RemoteSource(javax.tools.FileObject fo,
                    FClass fcls,
                    Kind kind,
                    boolean publish)
             throws java.io.IOException
java.io.IOExceptionpublic boolean shouldPublish()
CodebaseSourceshouldPublish in interface CodebaseSourcepublic void close()
           throws java.io.IOException
CodebaseSourceclose in interface CodebaseSourcejava.io.IOExceptionpublic boolean equals(java.lang.Object o)
public int hashCode()
public java.net.URI namespace()
CodebaseSourcenamespace in interface CodebaseSourcepublic java.net.URI canonicalNamespace()
CodebaseSourcecanonicalNamespace in interface CodebaseSourcepublic Source derivedSource(java.lang.String name)
CodebaseSourcederivedSource in interface CodebaseSourcepublic Source publishedSource(java.net.URI ns,
                              java.lang.String name)
CodebaseSourcepublishedSource in interface CodebaseSourcepublic Label label()
CodebaseSourcelabel in interface CodebaseSourcepublic void setPublish(boolean pub)
setPublish in interface CodebaseSourcepublic java.io.Reader open()
                    throws java.io.IOException
CodebaseSourceopen in interface CodebaseSourcejava.io.IOExceptionpublic java.lang.String path()
public java.lang.String toString()