public abstract class MethodBridge
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
MethodBridge.BridgeOriginal |
static class |
MethodBridge.BridgeParams
Container used by
bridgeBegin(BridgeParams) and bridgeEnd(BridgeParams) |
static class |
MethodBridge.BridgeType
Used by
MethodBridge.BridgeParams.bridgeType to identify the
system used to invoke a hook |
Constructor and Description |
---|
MethodBridge() |
Modifier and Type | Method and Description |
---|---|
MethodBridge.BridgeOriginal |
attachBridge(java.lang.reflect.Member member)
Create a bridge between this callback and the parsed
Member |
void |
bridgeAttached(java.lang.reflect.Member member,
MethodBridge.BridgeOriginal original)
Called once the bridge has been attached
|
void |
bridgeBegin(MethodBridge.BridgeParams params)
This method is invoked before the Original.
|
void |
bridgeEnd(MethodBridge.BridgeParams params)
This method is invoked after the Original, or after
bridgeBegin(BridgeParams)
if the Original has been skipped. |
public final MethodBridge.BridgeOriginal attachBridge(java.lang.reflect.Member member)
Member
member
- The Member
to bridgepublic void bridgeBegin(MethodBridge.BridgeParams params)
MethodBridge.BridgeParams.setResult(Object)
params
- Contains information about the original member and the arguments parsed to itpublic void bridgeEnd(MethodBridge.BridgeParams params)
bridgeBegin(BridgeParams)
if the Original has been skipped.params
- Contains information about the original member and the arguments parsed to itpublic void bridgeAttached(java.lang.reflect.Member member, MethodBridge.BridgeOriginal original)
member
- The member where the bridge was attached tooriginal
- An MethodBridge.BridgeOriginal
instance that can be used to call the original member.
This is meant to be used outside of the hooked method. Use invokeOriginal
from MethodBridge.BridgeParams
if you are executing from within the hook.