| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.openide.compiler.CompilerJob
A compiler job consists of more Compilers with dependencies
 between each other. The compiler job can compiled, built or
 cleaned. To handle each of these jobs the instance of the
 compilation engine is obtained and its is up to it to
 decide whether it will compile in one thread, a thread group, etc.
 
A module author only needs to instantiate this class if it is
 desired to initiate a whole compilation process from scratch;
 normally AbstractCompileAction does
 this. Usually it is only used as the argument to a constructor for
 a Compiler implementation.
| Fields inherited from interface org.openide.compiler.Compilable | 
MUTEX | 
| Constructor Summary | |
CompilerJob(Compiler.Depth depth)
Create a new job with the given initial depth.  | 
|
| Method Summary | |
 void | 
add(Collection comps)
Adds compilers into the job.  | 
 void | 
add(Compiler comp)
Adds a compiler into the job.  | 
 Collection | 
compilers()
A collection of all compilers that have been added by add (...) methods.  | 
 Collection | 
dependsOn()
Collection of all objects this job depends on.  | 
 void | 
dependsOn(Collection arr)
Adds a dependency.  | 
 void | 
dependsOn(Compilable c)
Adds a dependency.  | 
 String | 
getDisplayName()
Get the display name of the job  | 
 Compiler.Depth | 
getInitialDepth()
Get the depth of the job.  | 
 boolean | 
isUpToDate()
Test if the set of compilers in the job still needs to be compiled.  | 
 void | 
setDisplayName(String s)
Set the display name of this job.  | 
 CompilerTask | 
start()
Start asynchronous compilation of the job.  | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface org.openide.compiler.Compilable | 
equals | 
| Constructor Detail | 
public CompilerJob(Compiler.Depth depth)
depth - initial depth of the job; normally Compiler.DEPTH_ONE for Compile action, and Compiler.DEPTH_INFINITE for Compile All action| Method Detail | 
public Compiler.Depth getInitialDepth()
public CompilerTask start()
Usually used by, e.g., AbstractCompileAction.
public final boolean isUpToDate()
true if every compiler is up to date, false if at least one compilation
   is neededpublic void setDisplayName(String s)
s - the human readable name of this jobpublic String getDisplayName()
public void add(Compiler comp)
comp - the compilerpublic void add(Collection comps)
comps - collection of Compilerpublic void dependsOn(Compilable c)
c - compilablepublic void dependsOn(Collection arr)
arr - collection of Compilable objectspublic final Collection compilers()
compilers in interface Compilablepublic final Collection dependsOn()
dependsOn in interface Compilablepublic String toString()
toString in class Object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||