public final class TaskEvent extends Object
Modifier and Type | Class | Description |
---|---|---|
static enum |
TaskEvent.Kind |
Kind of task event. |
Constructor | Description |
---|---|
TaskEvent |
Creates a task event for a given kind. |
TaskEvent |
Creates a task event for a given kind and compilation unit. |
TaskEvent |
Creates a task event for a given kind, compilation unit and type element. |
TaskEvent |
Creates a task event for a given kind and source file. |
Modifier and Type | Method | Description |
---|---|---|
CompilationUnitTree |
getCompilationUnit() |
Returns the compilation unit for this event. |
TaskEvent.Kind |
getKind() |
Returns the kind for this event. |
JavaFileObject |
getSourceFile() |
Returns the source file for this event. |
TypeElement |
getTypeElement() |
Returns the type element for this event. |
public TaskEvent(TaskEvent.Kind kind)
null
.kind
- the kind of the eventpublic TaskEvent(TaskEvent.Kind kind, JavaFileObject sourceFile)
null
.kind
- the kind of the eventsourceFile
- the source filepublic TaskEvent(TaskEvent.Kind kind, CompilationUnitTree unit)
null
.kind
- the kind of the eventunit
- the compilation unitpublic TaskEvent(TaskEvent.Kind kind, CompilationUnitTree unit, TypeElement clazz)
kind
- the kind of the eventunit
- the compilation unitclazz
- the type elementpublic TaskEvent.Kind getKind()
public JavaFileObject getSourceFile()
null
.public CompilationUnitTree getCompilationUnit()
null
.public TypeElement getTypeElement()
null
.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.compiler/com/sun/source/util/TaskEvent.html