org.jdiseq
Class JdiEvent

java.lang.Object
  extended byorg.jdiseq.JdiEvent

public class JdiEvent
extends java.lang.Object

This class implements state about a JDI event that occured.

Changelog:

 $Log: JdiEvent.java,v $
 Revision 1.1  2003/04/02 19:48:55  austvold
 Minor updates. Mostly adaptation to new event and eventlistener name.
 General brush-up on javadoc comments.
 Removal of auto-added revision and date-of-commit members.

 Revision 1.1.1.1  2003/03/28 08:18:23  austvold
 Initial import.

 

Version:
$Id: JdiEvent.java,v 1.1 2003/04/02 19:48:55 austvold Exp $
Author:
Ørjan Nygaard Austvold

Constructor Summary
JdiEvent(boolean methodEntry, Method method, ThreadReference threadReference, ObjectReference objectReference, ReferenceType declaringType)
          Constructs a new JDI event.
 
Method Summary
 ReferenceType getDeclaringType()
          Gets the type in which the method event occured in.
 Method getMethod()
          Gets the method that the event occured on.
 ObjectReference getObjectReference()
          Gets the object in/on which a thread was executing when the event occured.
 ThreadReference getThreadReference()
          Gets the thread that were executing on/in the method when the event occured.
 boolean isMethodEntry()
          Determines if this event was a method entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdiEvent

public JdiEvent(boolean methodEntry,
                Method method,
                ThreadReference threadReference,
                ObjectReference objectReference,
                ReferenceType declaringType)
Constructs a new JDI event. The events state can be queried later by various getters.

Parameters:
methodEntry - true if this is a method entry, false otherwise.
method - the method that the event occured on.
threadReference - a reference to the thread that generated the event.
objectReference - a reference to the object in/on which the thread was executing while the event occured.
declaringType - the type of the object reference.
Method Detail

isMethodEntry

public boolean isMethodEntry()
Determines if this event was a method entry.

Returns:
true if this event describes a method entry, false otherwise.

getMethod

public Method getMethod()
Gets the method that the event occured on.

Returns:
a JDI method reference.

getThreadReference

public ThreadReference getThreadReference()
Gets the thread that were executing on/in the method when the event occured.

Returns:
a JDI thread reference.

getObjectReference

public ObjectReference getObjectReference()
Gets the object in/on which a thread was executing when the event occured.

Returns:
a JDI object reference.

getDeclaringType

public ReferenceType getDeclaringType()
Gets the type in which the method event occured in.

Returns:
a JDI type reference.


Copyright © 2003 SourceForge.net. All Rights Reserved.