Class JavaDispatcher.Dispatcher.ForDefaultValue.OfNonPrimitiveArray

    • Field Detail

      • componentType

        private final java.lang.Class<?> componentType
        The represented component type.
    • Constructor Detail

      • OfNonPrimitiveArray

        protected OfNonPrimitiveArray​(java.lang.Object value,
                                      java.lang.Class<?> componentType)
        Creates a new dispatcher for the default value of a non-primitive array.
        Parameters:
        value - The default value.
        componentType - The represented component type.
    • Method Detail

      • of

        protected static JavaDispatcher.Dispatcher of​(java.lang.Class<?> componentType)
        Creates a new dispatcher.
        Parameters:
        componentType - The represented component type.
        Returns:
        A dispatcher for the supplied component type.
      • invoke

        public java.lang.Object invoke​(java.lang.Object[] argument)
        Invokes the proxied action.
        Specified by:
        invoke in interface JavaDispatcher.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:
        apply in interface JavaDispatcher.Dispatcher
        Parameters:
        methodVisitor - The method visitor to implement the method with.
        method - The method being implemented.
        Returns:
        The maximal size of the operand stack.