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, targetName
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
finalize, getSourceObject, getTarget, getTargetName, protect, release, toString
public static final int METHOD_ENTERED
public static final int METHOD_EXITED
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 usedpublic 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 usedpublic java.lang.String getClassName()
public java.lang.Object[] getMethodArgs()
public java.lang.String getMethodName()
public boolean isConstructor()
public boolean isStaticInitializer()
Copyright © 2001. Documenation generated February 9 2016.