Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.7.0)

E10653-08

oracle.jbo.script.debug.client.event
Class AbstractEventSet

java.lang.Object
  extended by java.util.EventObject
      extended by oracle.jbo.script.debug.client.event.AbstractEventSet
All Implemented Interfaces:
com.sun.jdi.event.EventSet, com.sun.jdi.Mirror, java.io.Serializable, java.lang.Iterable<com.sun.jdi.event.Event>, java.util.Collection<com.sun.jdi.event.Event>, java.util.Set<com.sun.jdi.event.Event>
Direct Known Subclasses:
ClassPrepareEventSet, ClassUnloadEventSet, LocatableEventSet, ThreadDeathEventSet, ThreadStartEventSet, VMDeathEventSet, VMDisconnectEventSet, VMStartEventSet

public abstract class AbstractEventSet
extends java.util.EventObject
implements com.sun.jdi.event.EventSet

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 boolean add(com.sun.jdi.event.Event e)
           
 boolean addAll(java.util.Collection<? extends com.sun.jdi.event.Event> coll)
           
 void clear()
           
 boolean contains(java.lang.Object o)
          Returns true if this set contains the specified element.
 boolean containsAll(java.util.Collection<?> c)
          Returns true if this set contains all of the elements of the specified collection.
 com.sun.jdi.event.EventIterator eventIterator()
          Return an iterator specific to Event objects.
 int getSuspendPolicy()
          Returns the policy used to suspend threads in the target VM for this event set.
 com.sun.jdi.VirtualMachine getVirtualMachine()
           
 boolean isEmpty()
          Returns true if this set contains no elements.
 java.util.Iterator<com.sun.jdi.event.Event> iterator()
          Returns an iterator over the elements in this set.
abstract  void notify(JDIListener listener)
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection<?> coll)
           
 void resume()
           
 boolean retainAll(java.util.Collection<?> coll)
           
 int size()
          Returns the number of elements in this set (its cardinality).
 boolean suspendedAll()
           
 boolean suspendedEventThread()
           
 boolean suspendedNone()
           
 int suspendPolicy()
           
 java.lang.Object[] toArray()
          Returns an array containing all of the elements in this set.
<T> T[]
toArray(T[] a)
          Returns an array containing all of the elements in this set whose runtime type is that of the specified array.
static AbstractEventSet toSpecificEventSet(com.sun.jdi.event.EventSet jdiEventSet)
           
 com.sun.jdi.VirtualMachine virtualMachine()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.jdi.Mirror
toString
 
Methods inherited from interface java.util.Set
equals, hashCode
 

Method Detail

toSpecificEventSet

public static AbstractEventSet toSpecificEventSet(com.sun.jdi.event.EventSet jdiEventSet)

notify

public abstract void notify(JDIListener listener)

virtualMachine

public com.sun.jdi.VirtualMachine virtualMachine()
Specified by:
virtualMachine in interface com.sun.jdi.Mirror

getVirtualMachine

public com.sun.jdi.VirtualMachine getVirtualMachine()

getSuspendPolicy

public int getSuspendPolicy()
Returns the policy used to suspend threads in the target VM for this event set. This policy is selected from the suspend policies for each event's request. The one that suspends the most threads is chosen when the event occurs in the target VM and that policy is returned here. See com.sun.jdi.request.EventRequest for the possible policy values.

Returns:
the integer suspendPolicy

resume

public void resume()
Specified by:
resume in interface com.sun.jdi.event.EventSet

suspendPolicy

public int suspendPolicy()
Specified by:
suspendPolicy in interface com.sun.jdi.event.EventSet

suspendedAll

public boolean suspendedAll()

suspendedEventThread

public boolean suspendedEventThread()

suspendedNone

public boolean suspendedNone()

eventIterator

public com.sun.jdi.event.EventIterator eventIterator()
Return an iterator specific to Event objects.

Specified by:
eventIterator in interface com.sun.jdi.event.EventSet

size

public int size()
Returns the number of elements in this set (its cardinality). If this set contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Specified by:
size in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
size in interface java.util.Set<com.sun.jdi.event.Event>
Returns:
the number of elements in this set (its cardinality).

isEmpty

public boolean isEmpty()
Returns true if this set contains no elements.

Specified by:
isEmpty in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
isEmpty in interface java.util.Set<com.sun.jdi.event.Event>
Returns:
true if this set contains no elements.

contains

public boolean contains(java.lang.Object o)
Returns true if this set contains the specified element. More formally, returns true if and only if this set contains an element e such that (o==null ? e==null : o.equals(e)).

Specified by:
contains in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
contains in interface java.util.Set<com.sun.jdi.event.Event>
Returns:
true if this set contains the specified element.

iterator

public java.util.Iterator<com.sun.jdi.event.Event> iterator()
Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).

Specified by:
iterator in interface java.lang.Iterable<com.sun.jdi.event.Event>
Specified by:
iterator in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
iterator in interface java.util.Set<com.sun.jdi.event.Event>
Returns:
an iterator over the elements in this set.

toArray

public java.lang.Object[] toArray()
Returns an array containing all of the elements in this set. Obeys the general contract of the Collection.toArray method.

Specified by:
toArray in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
toArray in interface java.util.Set<com.sun.jdi.event.Event>
Returns:
an array containing all of the elements in this set.

toArray

public <T> T[] toArray(T[] a)
Returns an array containing all of the elements in this set whose runtime type is that of the specified array. Obeys the general contract of the Collection.toArray(Object[]) method.

Specified by:
toArray in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
toArray in interface java.util.Set<com.sun.jdi.event.Event>
Parameters:
a - the array into which the elements of this set are to be stored, if it is big enough { return jdiEventSet.XXX(); } otherwise, a new array of the same runtime type is allocated for this purpose.
Returns:
an array containing the elements of this set.
Throws:
java.lang.ArrayStoreException - the runtime type of a is not a supertype of the runtime type of every element in this set.

containsAll

public boolean containsAll(java.util.Collection<?> c)
Returns true if this set contains all of the elements of the specified collection. If the specified collection is also a set, this method returns true if it is a subset of this set.

Specified by:
containsAll in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
containsAll in interface java.util.Set<com.sun.jdi.event.Event>
Parameters:
c - collection to be checked for containment in this set.
Returns:
true if this set contains all of the elements of the specified collection.

add

public boolean add(com.sun.jdi.event.Event e)
Specified by:
add in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
add in interface java.util.Set<com.sun.jdi.event.Event>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
remove in interface java.util.Set<com.sun.jdi.event.Event>

addAll

public boolean addAll(java.util.Collection<? extends com.sun.jdi.event.Event> coll)
Specified by:
addAll in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
addAll in interface java.util.Set<com.sun.jdi.event.Event>

removeAll

public boolean removeAll(java.util.Collection<?> coll)
Specified by:
removeAll in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
removeAll in interface java.util.Set<com.sun.jdi.event.Event>

retainAll

public boolean retainAll(java.util.Collection<?> coll)
Specified by:
retainAll in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
retainAll in interface java.util.Set<com.sun.jdi.event.Event>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<com.sun.jdi.event.Event>
Specified by:
clear in interface java.util.Set<com.sun.jdi.event.Event>

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.7.0)

E10653-08

Copyright © 1997, 2013, Oracle. All rights reserved.