FileDocCategorySizeDatePackage
TaskEvent.javaAPI DocJava SE 6 API2540Tue Jun 10 00:23:26 BST 2008com.sun.source.util

TaskEvent

public final class TaskEvent extends Object
Provides details about work that has been done by the Sun Java Compiler, javac.
author
Jonathan Gibbons
since
1.6

Fields Summary
private Kind
kind
private JavaFileObject
file
private CompilationUnitTree
unit
private TypeElement
clazz
Constructors Summary
public TaskEvent(Kind kind)
For events relating to an individual annotation processing round.

	this(kind, null, null, null);
    
public TaskEvent(Kind kind, JavaFileObject sourceFile)

	this(kind, sourceFile, null, null);
    
public TaskEvent(Kind kind, CompilationUnitTree unit)

	this(kind, unit.getSourceFile(), unit, null);
    
public TaskEvent(Kind kind, CompilationUnitTree unit, TypeElement clazz)

	this(kind, unit.getSourceFile(), unit, clazz);
    
private TaskEvent(Kind kind, JavaFileObject file, CompilationUnitTree unit, TypeElement clazz)

	this.kind = kind;
	this.file = file;
	this.unit = unit;
	this.clazz = clazz;
    
Methods Summary
public com.sun.source.tree.CompilationUnitTreegetCompilationUnit()

	return unit;
    
public com.sun.source.util.TaskEvent$KindgetKind()

	return kind;
    
public javax.tools.JavaFileObjectgetSourceFile()

	return file;
    
public javax.lang.model.element.TypeElementgetTypeElement()

	return clazz;
    
public java.lang.StringtoString()

	return "TaskEvent[" 
	    + kind + "," 
	    + file + ","
	    // the compilation unit is identified by the file
	    + clazz + "]";