org.openide.compiler
Class ProgressEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.openide.compiler.CompilerEvent
              |
              +--org.openide.compiler.ProgressEvent
All Implemented Interfaces:
Serializable

public class ProgressEvent
extends CompilerEvent

Event describing progress made compiling a file.

See Also:
Serialized Form

Field Summary
static int TASK_CLEANING
          Task for cleaning result of (previous) compilation.
static int TASK_GENERATING
          Task for generating the output code.
static int TASK_PARSING
          Task for parsing source code in preparation.
static int TASK_UNKNOWN
          Task for general compiler overhead, unspecified.
static int TASK_WRITING
          Task for writing the output code.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ProgressEvent(CompilerGroup source, FileObject file)
          Create a progress event of unspecified type.
ProgressEvent(CompilerGroup source, FileObject file, int task)
          Create a progress event.
 
Method Summary
 int getTask()
          Get the task type.
 
Methods inherited from class org.openide.compiler.CompilerEvent
getCompilerGroup, getFile
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TASK_UNKNOWN

public static final int TASK_UNKNOWN
Task for general compiler overhead, unspecified.

TASK_PARSING

public static final int TASK_PARSING
Task for parsing source code in preparation.

TASK_GENERATING

public static final int TASK_GENERATING
Task for generating the output code.

TASK_WRITING

public static final int TASK_WRITING
Task for writing the output code.

TASK_CLEANING

public static final int TASK_CLEANING
Task for cleaning result of (previous) compilation.
Constructor Detail

ProgressEvent

public ProgressEvent(CompilerGroup source,
                     FileObject file)
Create a progress event of unspecified type.
Parameters:
source - the compiler group that produced the event
file - the file being compiled

ProgressEvent

public ProgressEvent(CompilerGroup source,
                     FileObject file,
                     int task)
Create a progress event.
Parameters:
source - the compiler group that produced the event
file - the file being compiled
task - one of TASK_UNKNOWN, TASK_PARSING, TASK_GENERATING, TASK_WRITING
Method Detail

getTask

public int getTask()
Get the task type.
Returns:
the task


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.