|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpolyglot.frontend.Job
polyglot.frontend.SourceJob
A SourceJob
encapsulates work done by the compiler on behalf of
one source file. It includes all information carried between phases
of the compiler.
Field Summary | |
protected java.util.Set |
dependencies
Set of Source s that this SourceJob depends upon. |
protected Source |
source
The Source that this Job is for. |
Fields inherited from class polyglot.frontend.Job |
ast, ext, initialErrorCount, lang, nextPass, passes, passMap, reportedErrors, runningPass, status |
Constructor Summary | |
SourceJob(ExtensionInfo lang,
JobExt ext,
Source source,
Node ast)
Constructor |
Method Summary | |
void |
addDependency(Source s)
|
java.util.Set |
dependencies()
|
java.util.List |
getPasses()
The initial list of passes is just the list that the language extension provides us with. |
Source |
source()
Return the Source associated with the
SourceJob returned by sourceJob . |
SourceJob |
sourceJob()
Get the SourceJob associated with this Job . |
java.lang.String |
toString()
|
Methods inherited from class polyglot.frontend.Job |
ast, ast, compiler, completed, completed, completedPasses, context, dump, ext, extensionInfo, finishPass, getPreviousTo, init, isRunning, lastBarrier, nextPass, passByID, passes, pending, pendingPasses, reportedErrors, runningPass, setRunningPass, spawn, status, userSpecified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Source source
Source
that this Job
is for.
protected java.util.Set dependencies
Source
s that this SourceJob depends upon.
This will include, but is not limited to, the other Sources that
this SourceJob caused to load.
Constructor Detail |
public SourceJob(ExtensionInfo lang, JobExt ext, Source source, Node ast)
Method Detail |
public java.util.Set dependencies()
public void addDependency(Source s)
public java.util.List getPasses()
getPasses
in class Job
public Source source()
Job
Source
associated with the
SourceJob
returned by sourceJob
.
source
in class Job
public SourceJob sourceJob()
Job
SourceJob
associated with this Job
.
If this Job
is a SourceJob
, then this
object should be returned; otherwise the most suitable
SourceJob
should be returned. See subclasses' documentation
for more details of what the most suitable SourceJob
is.
sourceJob
in class Job
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |