public class MethodEvent extends JiapiEvent
| Modifier and Type | Field and Description |
|---|---|
static int |
METHOD_ENTERED
Constant used as an id of the MethodEvent
|
static int |
METHOD_EXITED
Constant used as an id of the MethodEvent
|
id, sourceObject, target, targetNamesource| Constructor and Description |
|---|
MethodEvent(MethodEventProducer mep,
Object sourceObject,
String methodName,
int id)
Constructor.
|
MethodEvent(MethodEventProducer mep,
Object sourceObject,
String methodName,
Object target,
Object[] methodArgs,
int id)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName()
Get the name of the class producing this event.
|
Object[] |
getMethodArgs()
Get the arguments.
|
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.
|
finalize, getSourceObject, getTarget, getTargetName, protect, release, toStringgetSourcepublic static final int METHOD_ENTERED
public static final int METHOD_EXITED
public MethodEvent(MethodEventProducer mep, Object sourceObject, 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 usedpublic MethodEvent(MethodEventProducer mep, Object sourceObject, String methodName, Object target, 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 usedpublic Object[] getMethodArgs()
public String getClassName()
public String getMethodName()
public boolean isConstructor()
public boolean isStaticInitializer()
Copyright © 2017. All rights reserved.