Class MethodDelegate.Generator

    • Field Detail

      • METHOD_DELEGATE

        private static final org.objectweb.asm.Type METHOD_DELEGATE
      • NEW_INSTANCE

        private static final Signature NEW_INSTANCE
      • target

        private java.lang.Object target
      • targetClass

        private java.lang.Class targetClass
      • methodName

        private java.lang.String methodName
      • iface

        private java.lang.Class iface
    • Constructor Detail

      • Generator

        public Generator()
    • Method Detail

      • setTarget

        public void setTarget​(java.lang.Object target)
      • setTargetClass

        public void setTargetClass​(java.lang.Class targetClass)
      • setMethodName

        public void setMethodName​(java.lang.String methodName)
      • setInterface

        public void setInterface​(java.lang.Class iface)
      • getProtectionDomain

        protected java.security.ProtectionDomain getProtectionDomain()
        Description copied from class: AbstractClassGenerator
        Returns the protection domain to use when defining the class.

        Default implementation returns null for using a default protection domain. Sub-classes may override to use a more specific protection domain.

        Overrides:
        getProtectionDomain in class AbstractClassGenerator
        Returns:
        the protection domain (null for using a default)
      • generateClass

        public void generateClass​(org.objectweb.asm.ClassVisitor v)
                           throws java.lang.NoSuchMethodException
        Throws:
        java.lang.NoSuchMethodException