Package net.bytebuddy.utility.dispatcher
Class JavaDispatcher.Dispatcher.ForContainerCreation
- java.lang.Object
-
- net.bytebuddy.utility.dispatcher.JavaDispatcher.Dispatcher.ForContainerCreation
-
- All Implemented Interfaces:
JavaDispatcher.Dispatcher
- Enclosing interface:
- JavaDispatcher.Dispatcher
@Enhance public static class JavaDispatcher.Dispatcher.ForContainerCreation extends java.lang.Object implements JavaDispatcher.Dispatcher
A dispatcher that creates an array.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.utility.dispatcher.JavaDispatcher.Dispatcher
JavaDispatcher.Dispatcher.ForConstructor, JavaDispatcher.Dispatcher.ForContainerCreation, JavaDispatcher.Dispatcher.ForDefaultValue, JavaDispatcher.Dispatcher.ForInstanceCheck, JavaDispatcher.Dispatcher.ForNonStaticMethod, JavaDispatcher.Dispatcher.ForStaticMethod, JavaDispatcher.Dispatcher.ForUnresolvedMethod
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<?>targetThe component type.
-
Constructor Summary
Constructors Modifier Constructor Description protectedForContainerCreation(java.lang.Class<?> target)Creates a dispatcher for an array creation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intapply(org.objectweb.asm.MethodVisitor methodVisitor, java.lang.reflect.Method method)Implements this dispatcher in a generated proxy.java.lang.Objectinvoke(java.lang.Object[] argument)Invokes the proxied action.
-
-
-
Method Detail
-
invoke
public java.lang.Object invoke(java.lang.Object[] argument)
Invokes the proxied action.- Specified by:
invokein interfaceJavaDispatcher.Dispatcher- Parameters:
argument- The arguments provided.- Returns:
- The return value.
-
apply
public int apply(org.objectweb.asm.MethodVisitor methodVisitor, java.lang.reflect.Method method)Implements this dispatcher in a generated proxy.- Specified by:
applyin interfaceJavaDispatcher.Dispatcher- Parameters:
methodVisitor- The method visitor to implement the method with.method- The method being implemented.- Returns:
- The maximal size of the operand stack.
-
-