|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectjava.util.EventObject
alt.jiapi.event.JiapiEvent
alt.jiapi.event.MethodEvent
public class MethodEvent
MethodEvent objects are used to identify methods that are entered or exited.
| Field Summary | |
|---|---|
static int |
METHOD_ENTERED
Constant used as an id of the MethodEvent |
static int |
METHOD_EXITED
Constant used as an id of the MethodEvent |
| Fields inherited from class alt.jiapi.event.JiapiEvent |
|---|
id, sourceObject, target, targetName |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
MethodEvent(MethodEventProducer mep,
java.lang.Object sourceObject,
java.lang.String methodName,
int id)
Constructor. |
|
MethodEvent(MethodEventProducer mep,
java.lang.Object sourceObject,
java.lang.String methodName,
java.lang.Object target,
java.lang.Object[] methodArgs,
int id)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getClassName()
Get the name of the class producing this event. |
java.lang.Object[] |
getMethodArgs()
Get the arguments. |
java.lang.String |
getMethodName()
Get the name of the method producing this event. |
boolean |
isConstructor()
Is this method a constructor? |
boolean |
isStaticInitializer()
Is this method a static initializer. |
| Methods inherited from class alt.jiapi.event.JiapiEvent |
|---|
finalize, getSourceObject, getTarget, getTargetName, protect, release, toString |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int METHOD_ENTERED
public static final int METHOD_EXITED
| Constructor Detail |
|---|
public MethodEvent(MethodEventProducer mep,
java.lang.Object sourceObject,
java.lang.String methodName,
int id)
mep - an instance of MethodEventProducersourceObject - A Source Object. On static methods, this
is the Class, that method belongs to.
Otherwise Source Object is 'this'.methodName - Name of the methodid - METHOD_ENTERED or METHOD_EXITED values should be used
public MethodEvent(MethodEventProducer mep,
java.lang.Object sourceObject,
java.lang.String methodName,
java.lang.Object target,
java.lang.Object[] methodArgs,
int id)
mep - an instance of MethodEventProducersourceObject - A Source Object. On static methods, this
is the Class, that method belongs to.
Otherwise Source Object is 'this'.methodName - Name of the methodtarget - 'this'methodArgs - arguments of the methodid - METHOD_ENTERED or METHOD_EXITED values should be used| Method Detail |
|---|
public java.lang.String getClassName()
public java.lang.Object[] getMethodArgs()
public java.lang.String getMethodName()
public boolean isConstructor()
public boolean isStaticInitializer()
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||