|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bluej.extensions.event.InvocationEvent
public class InvocationEvent
This class encapsulates events generated when the construction or invocation of a BlueJ object finishes. An invocation may finish in a normal way or it may be interrupted. From this event you can extract the actual result of the invocation, and access the BlueJ classes and objects involved.
Field Summary | |
---|---|
static int |
EXCEPTION_EXIT
The execution finished due to an exception |
static int |
FORCED_EXIT
Deprecated. |
static int |
NORMAL_EXIT
The execution finished normally. |
static int |
TERMINATED_EXIT
The execution finished because the user forcefully terminated it |
static int |
UNKNOWN_EXIT
This event is returned in case of unknown mapping |
Constructor Summary | |
---|---|
InvocationEvent(bluej.debugmgr.ExecutionEvent exevent)
Constructor for the event. |
Method Summary | |
---|---|
java.lang.String |
getClassName()
Returns the class name on which this invocation took place. |
int |
getInvocationStatus()
Returns the invocation status. |
java.lang.String |
getMethodName()
Returns the method name being called. |
java.lang.String |
getObjectName()
Returns the instance name of the invoked object on the object bench. |
BPackage |
getPackage()
Returns the package in which this invocation took place. |
java.lang.String[] |
getParameters()
Returns the values of the parameters to the invocation as strings. |
java.lang.Object |
getResult()
Returns the newly created object (if any). |
java.lang.Class<?>[] |
getSignature()
Returns the signature of the invoked method or constructor. |
java.lang.String |
toString()
Returns a meaningful description of this Event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN_EXIT
public static final int NORMAL_EXIT
@Deprecated public static final int FORCED_EXIT
System.exit()
. This is
deprecated; it cannot actually occur.
public static final int EXCEPTION_EXIT
public static final int TERMINATED_EXIT
Constructor Detail |
---|
public InvocationEvent(bluej.debugmgr.ExecutionEvent exevent)
exevent
- Description of the ParameterMethod Detail |
---|
public int getInvocationStatus()
public BPackage getPackage()
public java.lang.String getClassName()
BPackage.getBClass()
using this name as a reference.
public java.lang.String getObjectName()
BPackage.getObject()
using this name as a reference.
For a static method invocation, this method will return null
.
For a constructor call it will return the new instance name of the object on the object bench.
For a method call it will return the name of the object on which the operation was invoked.
public java.lang.String getMethodName()
null
if this is an invocation of a constructor.
public java.lang.Class<?>[] getSignature()
public java.lang.String[] getParameters()
public java.lang.Object getResult()
null
if the result type is void
.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |