MethodListenerpublic interface MethodListener Interface to allow a method invocation to be listened upon.
This is used by {@link OverrideMethod} to register a listener for methods that
have been stubbed by the {@link AsmGenerator}. At runtime the stub will call either a
default global listener or a specific listener based on the method signature. |
Methods Summary |
---|
public java.lang.Object | onInvokeA(java.lang.String signature, boolean isNative, java.lang.Object caller)Same as {@link #onInvokeV(String, boolean, Object)} but returns an object.
| public double | onInvokeD(java.lang.String signature, boolean isNative, java.lang.Object caller)Same as {@link #onInvokeV(String, boolean, Object)} but returns a double.
| public float | onInvokeF(java.lang.String signature, boolean isNative, java.lang.Object caller)Same as {@link #onInvokeV(String, boolean, Object)} but returns a float.
| public int | onInvokeI(java.lang.String signature, boolean isNative, java.lang.Object caller)Same as {@link #onInvokeV(String, boolean, Object)} but returns an integer or similar.
| public long | onInvokeL(java.lang.String signature, boolean isNative, java.lang.Object caller)Same as {@link #onInvokeV(String, boolean, Object)} but returns a long.
| public void | onInvokeV(java.lang.String signature, boolean isNative, java.lang.Object caller)A stub method is being invoked.
Known limitation: caller arguments are not available.
|
|