Class ExecutableMethodsDefinitionWriter

    • Field Detail

      • GET_EXECUTABLE_AT_INDEX_METHOD

        public static final org.objectweb.asm.commons.Method GET_EXECUTABLE_AT_INDEX_METHOD
      • SUPER_TYPE

        public static final org.objectweb.asm.Type SUPER_TYPE
    • Constructor Detail

      • ExecutableMethodsDefinitionWriter

        public ExecutableMethodsDefinitionWriter​(java.lang.String beanDefinitionClassName,
                                                 java.lang.String beanDefinitionReferenceClassName,
                                                 OriginatingElements originatingElements)
    • Method Detail

      • getClassName

        public java.lang.String getClassName()
        Returns:
        The generated class name.
      • getClassType

        public org.objectweb.asm.Type getClassType()
        Returns:
        The generated class type.
      • isSupportsInterceptedProxy

        public boolean isSupportsInterceptedProxy()
        Does method supports intercepted proxy.
        Returns:
        Does method supports intercepted proxy
      • isAbstract

        public boolean isAbstract​(int index)
        Is the method abstract.
        Parameters:
        index - The method index
        Returns:
        Is the method abstract
      • isInterface

        public boolean isInterface​(int index)
        Is the method in an interface.
        Parameters:
        index - The method index
        Returns:
        Is the method in an interface
      • isDefault

        public boolean isDefault​(int index)
        Is the method a default method.
        Parameters:
        index - The method index
        Returns:
        Is the method a default method
      • isSuspend

        public boolean isSuspend​(int index)
        Is the method suspend.
        Parameters:
        index - The method index
        Returns:
        Is the method suspend
      • visitExecutableMethod

        public int visitExecutableMethod​(TypedElement declaringType,
                                         MethodElement methodElement,
                                         java.lang.String interceptedProxyClassName,
                                         java.lang.String interceptedProxyBridgeMethodName)
        Visit a method that is to be made executable allow invocation of said method without reflection.
        Parameters:
        declaringType - The declaring type of the method. Either a Class or a string representing the name of the type
        methodElement - The method element
        interceptedProxyClassName - The intercepted proxy class name
        interceptedProxyBridgeMethodName - The intercepted proxy bridge method name
        Returns:
        The method index