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
 
Constructor Summary
protected CompilerTask(Runnable run)
          Create the task.
 
Method Summary
abstract  boolean isSuccessful()
          Test the result of compilation.
abstract  void stop()
          Stop the computation.
 
Methods inherited from class org.openide.util.Task
addTaskListener, isFinished, notifyFinished, notifyRunning, removeTaskListener, run, toString, waitFinished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompilerTask

protected CompilerTask(Runnable run)
Create the task.
Parameters:
run - runnable to run
Method Detail

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.