protected static interface JavaDispatcher.Dispatcher
Modifier and Type | Interface and Description |
---|---|
static class |
JavaDispatcher.Dispatcher.ForConstructor
A dispatcher for invoking a constructor.
|
static class |
JavaDispatcher.Dispatcher.ForContainerCreation
A dispatcher that creates an array.
|
static class |
JavaDispatcher.Dispatcher.ForDefaultValue
A dispatcher that returns a fixed value.
|
static class |
JavaDispatcher.Dispatcher.ForInstanceCheck
A dispatcher that performs an instance check.
|
static class |
JavaDispatcher.Dispatcher.ForNonStaticMethod
A dispatcher for invoking a non-static proxied method.
|
static class |
JavaDispatcher.Dispatcher.ForStaticMethod
A dispatcher for invoking a static proxied method.
|
static class |
JavaDispatcher.Dispatcher.ForUnresolvedMethod
A dispatcher for an unresolved method.
|
Modifier and Type | Method and Description |
---|---|
int |
apply(org.objectweb.asm.MethodVisitor methodVisitor,
Method method)
Implements this dispatcher in a generated proxy.
|
Object |
invoke(Object[] argument)
Invokes the proxied action.
|
@MaybeNull Object invoke(Object[] argument) throws Throwable
argument
- The arguments provided.Throwable
- If any error occurs.int apply(org.objectweb.asm.MethodVisitor methodVisitor, Method method)
methodVisitor
- The method visitor to implement the method with.method
- The method being implemented.Copyright © 2014–2022. All rights reserved.