polyglot.frontend
Class InnerJob

java.lang.Object
  extended by polyglot.frontend.Job
      extended by polyglot.frontend.InnerJob

public class InnerJob
extends Job

An InnerJob encapsulates work done by the compiler for a nested class. In general InnerJobs are transient, in that they are not added to the worklist. An InnerJob will typically run only a few passes at a time.


Field Summary
protected  Pass.ID begin
          Only the passes between begin and end will be performed.
protected  Context context
          The context in which this Job was spawned.
protected  Pass.ID end
          Only the passes between begin and end will be performed.
protected  Job outer
          The job that this InnerJob was spawned by.
 
Fields inherited from class polyglot.frontend.Job
ast, ext, initialErrorCount, lang, nextPass, passes, passMap, reportedErrors, runningPass, status
 
Constructor Summary
InnerJob(ExtensionInfo lang, JobExt ext, Node ast, Context context, Job outer, Pass.ID begin, Pass.ID end)
          Constructor
 
Method Summary
 Context context()
          By default, a Job does not have a context associated with it.
 java.util.List getPasses()
          The initial list of passes is the list that the language extension provides us with, limited to those between begin and end inclusive.
 SourceJob sourceJob()
          The SourceJob associated with our outer Job.
 java.lang.String toString()
           
 
Methods inherited from class polyglot.frontend.Job
ast, ast, compiler, completed, completed, completedPasses, dump, ext, extensionInfo, finishPass, getPreviousTo, init, isRunning, lastBarrier, nextPass, passByID, passes, pending, pendingPasses, reportedErrors, runningPass, setRunningPass, source, spawn, status, userSpecified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

outer

protected Job outer
The job that this InnerJob was spawned by.


context

protected Context context
The context in which this Job was spawned.


begin

protected Pass.ID begin
Only the passes between begin and end will be performed.


end

protected Pass.ID end
Only the passes between begin and end will be performed.

Constructor Detail

InnerJob

public InnerJob(ExtensionInfo lang,
                JobExt ext,
                Node ast,
                Context context,
                Job outer,
                Pass.ID begin,
                Pass.ID end)
Constructor

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPasses

public java.util.List getPasses()
The initial list of passes is the list that the language extension provides us with, limited to those between begin and end inclusive.

Specified by:
getPasses in class Job

context

public Context context()
Description copied from class: Job
By default, a Job does not have a context associated with it. Subclasses may override this method.

Overrides:
context in class Job

sourceJob

public SourceJob sourceJob()
The SourceJob associated with our outer Job.

Specified by:
sourceJob in class Job