Top Description Fields Constructors Methods
com.sun.tools.javac.api

public Class MultiTaskListener

extends Object
implements TaskListener
Class Inheritance
All Implemented Interfaces
com.sun.source.util.TaskListener
Imports
java.util.Arrays, .Collection, com.sun.source.util.TaskEvent, .TaskListener, com.sun.tools.javac.code.DeferredCompletionFailureHandler, .DeferredCompletionFailureHandler.Handler, com.sun.tools.javac.util.Context, .DefinedBy, .DefinedBy.Api

A collection of currently registered TaskListeners. Events passed to this TaskListener will be forwarded to all the registered TaskListeners.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

Field Summary

Modifier and TypeField and Description
pack-priv ClientCodeWrapper
private final DeferredCompletionFailureHandler
private static final TaskListener[]
EMPTY_LISTENERS

Empty array of task listeners

pack-priv TaskListener[]
listeners

The current set of registered listeners.

public static final Context.Key<MultiTaskListener>
taskListenerKey

The context key for the MultiTaskListener.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
add(TaskListener listener)

public void
public void
finished(TaskEvent
the event
e
)

Overrides default com.sun.source.util.TaskListener.finished.

Invoked when an event has been completed.
public Collection<TaskListener>
public static MultiTaskListener
instance(Context context)

Get the MultiTaskListener instance for this context.

public boolean
public void
remove(TaskListener listener)

public void
started(TaskEvent
the event
e
)

Overrides default com.sun.source.util.TaskListener.started.

Invoked when an event has begun.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ccwback to summary
pack-priv ClientCodeWrapper ccw
dcfhback to summary
private final DeferredCompletionFailureHandler dcfh
EMPTY_LISTENERSback to summary
private static final TaskListener[] EMPTY_LISTENERS

Empty array of task listeners

listenersback to summary
pack-priv TaskListener[] listeners

The current set of registered listeners. This is a mutable reference to an immutable array.

taskListenerKeyback to summary
public static final Context.Key<MultiTaskListener> taskListenerKey

The context key for the MultiTaskListener.

Constructor Detail

MultiTaskListenerback to summary
protected MultiTaskListener(Context context)
Annotations
@SuppressWarnings:this-escape

Method Detail

addback to summary
public void add(TaskListener listener)
clearback to summary
public void clear()
finishedback to summary
public void finished(TaskEvent e)

Overrides default com.sun.source.util.TaskListener.finished.

Doc from com.sun.source.util.TaskListener.finished.

Invoked when an event has been completed.

Parameters
e:TaskEvent

the event

Annotations
@Override
@DefinedBy:COMPILER_TREE
getTaskListenersback to summary
public Collection<TaskListener> getTaskListeners()
instanceback to summary
public static MultiTaskListener instance(Context context)

Get the MultiTaskListener instance for this context.

isEmptyback to summary
public boolean isEmpty()
removeback to summary
public void remove(TaskListener listener)
startedback to summary
public void started(TaskEvent e)

Overrides default com.sun.source.util.TaskListener.started.

Doc from com.sun.source.util.TaskListener.started.

Invoked when an event has begun.

Parameters
e:TaskEvent

the event

Annotations
@Override
@DefinedBy:COMPILER_TREE
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override