MethodAdapterpublic class MethodAdapter extends Object implements MethodListenerAn adapter to make it easier to use {@link MethodListener}.
The adapter calls the void {@link #onInvokeV(String, boolean, Object)} listener
for all types (I, L, F, D and A), returning 0 or null as appropriate. |
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.
onInvokeV(signature, isNative, caller);
return null;
| public double | onInvokeD(java.lang.String signature, boolean isNative, java.lang.Object caller)Same as {@link #onInvokeV(String, boolean, Object)} but returns a double.
onInvokeV(signature, isNative, caller);
return 0;
| public float | onInvokeF(java.lang.String signature, boolean isNative, java.lang.Object caller)Same as {@link #onInvokeV(String, boolean, Object)} but returns a float.
onInvokeV(signature, isNative, caller);
return 0;
| 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.
onInvokeV(signature, isNative, caller);
return 0;
| public long | onInvokeL(java.lang.String signature, boolean isNative, java.lang.Object caller)Same as {@link #onInvokeV(String, boolean, Object)} but returns a long.
onInvokeV(signature, isNative, caller);
return 0;
| 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.
|
|