Class PanacheEntityClassOperationGenerationVisitor


  • public class PanacheEntityClassOperationGenerationVisitor
    extends org.objectweb.asm.ClassVisitor
    A visitor that adds Panache operations to a Panache entity type.
    • Field Detail

      • thisClass

        protected org.objectweb.asm.Type thisClass
      • panacheEntityBaseClassInfo

        protected final org.jboss.jandex.ClassInfo panacheEntityBaseClassInfo
      • entityInfo

        protected org.jboss.jandex.ClassInfo entityInfo
      • entityUpperBound

        protected final ByteCodeType entityUpperBound
    • Constructor Detail

      • PanacheEntityClassOperationGenerationVisitor

        public PanacheEntityClassOperationGenerationVisitor​(org.objectweb.asm.ClassVisitor outputClassVisitor,
                                                            TypeBundle typeBundle,
                                                            org.jboss.jandex.ClassInfo entityInfo,
                                                            List<PanacheMethodCustomizer> methodCustomizers,
                                                            org.jboss.jandex.IndexView indexView)
    • Method Detail

      • visitMethod

        public org.objectweb.asm.MethodVisitor visitMethod​(int access,
                                                           String methodName,
                                                           String descriptor,
                                                           String signature,
                                                           String[] exceptions)
        Overrides:
        visitMethod in class org.objectweb.asm.ClassVisitor
      • visitEnd

        public void visitEnd()
        Overrides:
        visitEnd in class org.objectweb.asm.ClassVisitor
      • discoverTypeParameters

        protected void discoverTypeParameters​(org.jboss.jandex.ClassInfo classInfo,
                                              org.jboss.jandex.IndexView indexView,
                                              TypeBundle types,
                                              ByteCodeType baseType)
      • generateMethod

        protected void generateMethod​(org.jboss.jandex.MethodInfo method,
                                      org.jboss.jandex.AnnotationValue targetReturnTypeErased,
                                      org.jboss.jandex.AnnotationValue callSuperMethod)
      • injectModel

        protected void injectModel​(org.objectweb.asm.MethodVisitor mv)