| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.openide.compiler.CompilerGroup
Cluster of compiler objects that actually runs the compilation.
 Should be implemented by a module author in conjunction with Compiler.
 
 The group is created by obtaining a class name from
 Compiler.compilerGroupClass()
 and instantiating it. Then all compilers
 that use the same class are added to the group with add(org.openide.compiler.Compiler).
 
The group can assume that everything is prepared for compilation. It can be invoked by actions to compile, build or clean.
| Constructor Summary | |
CompilerGroup()
 | 
|
| Method Summary | |
abstract  void | 
add(Compiler c)
Add a compiler to the group.  | 
 void | 
addCompilerListener(CompilerListener l)
Add a listener.  | 
protected  void | 
fireErrorEvent(ErrorEvent ev)
Fires an error event to all listeners.  | 
protected  void | 
fireProgressEvent(ProgressEvent ev)
Fire a progress event to all listeners.  | 
 void | 
removeCompilerListener(CompilerListener l)
Remove a listener.  | 
abstract  boolean | 
start()
Start compilation.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public CompilerGroup()
| Method Detail | 
public abstract void add(Compiler c)
                  throws IllegalArgumentException
This method is important for module authors, as it should keep track of the essential data from the compiler added to it, so that the group knows what files (e.g.) to compile.
c - the compiler to consumeIllegalArgumentException - if the compiler
   does not belong to this group (the group's class is not
   assignable to the one returned from Compiler.compilerGroupClass())public abstract boolean start()
The compilation should report its progress to status listeners and report all errors to error listeners.
true if successful, false if the compilation failedpublic final void addCompilerListener(CompilerListener l)
l - the listener to addpublic final void removeCompilerListener(CompilerListener l)
l - the listener to removeprotected final void fireProgressEvent(ProgressEvent ev)
ev - the event to fireprotected final void fireErrorEvent(ErrorEvent ev)
ev - the event to fire
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||