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 Object
implements JavaDispatcher.Dispatcher
A dispatcher that creates an array.
-
Nested Class Summary
Nested classes/interfaces inherited from interface 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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForContainerCreation(Class<?> target) Creates a dispatcher for an array creation. -
Method Summary
-
Field Details
-
target
The component type.
-
-
Constructor Details
-
ForContainerCreation
Creates a dispatcher for an array creation.- Parameters:
target- The component type.
-
-
Method Details
-
invoke
Invokes the proxied action.- Specified by:
invokein interfaceJavaDispatcher.Dispatcher- Parameters:
argument- The arguments provided.- Returns:
- The return value.
-
apply
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.
-