org.openide.compiler
Class CompilerTask
java.lang.Object
|
+--org.openide.util.Task
|
+--org.openide.compiler.CompilerTask
- All Implemented Interfaces:
- Runnable
- public abstract class CompilerTask
- extends Task
Represents an asynchronously
running compilation task.
One can stop the computation or check whether it was successful.
Fields inherited from class org.openide.util.Task |
EMPTY |
Method Summary |
abstract boolean |
isSuccessful()
Test the result of compilation. |
abstract void |
stop()
Stop the computation. |
CompilerTask
protected CompilerTask(Runnable run)
- Create the task.
- Parameters:
run
- runnable to run
stop
public abstract void stop()
- Stop the computation.
isSuccessful
public abstract boolean isSuccessful()
- Test the result of compilation. If the compilation
is not finished, the calling thread will be blocked until it is.
- Returns:
true
if the compilation was successful,
false
if there was a problem
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.