站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v6.0, Java 2 SDK 英文文档

TaskEvent (Compiler Tree API) - JDK 5 Documentation v6.0, Java 2 SDK 英文文档


Compiler Tree API

com.sun.source.util
Class TaskEvent

java.lang.Object
  extended by com.sun.source.util.TaskEvent

public final class TaskEvent
extends Object

Provides details about work that has been done by the Sun Java Compiler, javac.

Since:
1.6

Nested Class Summary
static class TaskEvent.Kind
          Kind of task event.
 
Constructor Summary
TaskEvent(TaskEvent.Kind kind)
           
TaskEvent(TaskEvent.Kind kind, CompilationUnitTree unit)
           
TaskEvent(TaskEvent.Kind kind, CompilationUnitTree unit, TypeElement clazz)
           
TaskEvent(TaskEvent.Kind kind, JavaFileObject sourceFile)
           
 
Method Summary
 CompilationUnitTree getCompilationUnit()
           
 TaskEvent.Kind getKind()
           
 JavaFileObject getSourceFile()
           
 TypeElement getTypeElement()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskEvent

public TaskEvent(TaskEvent.Kind kind)

TaskEvent

public TaskEvent(TaskEvent.Kind kind,
                 JavaFileObject sourceFile)

TaskEvent

public TaskEvent(TaskEvent.Kind kind,
                 CompilationUnitTree unit)

TaskEvent

public TaskEvent(TaskEvent.Kind kind,
                 CompilationUnitTree unit,
                 TypeElement clazz)
Method Detail

getKind

public TaskEvent.Kind getKind()

getSourceFile

public JavaFileObject getSourceFile()

getCompilationUnit

public CompilationUnitTree getCompilationUnit()

getTypeElement

public TypeElement getTypeElement()

toString

public String toString()
Overrides:
toString in class Object

Compiler Tree API

Report a bug or request a feature.
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.