Class PanacheRepositoryClassOperationGenerationVisitor
- java.lang.Object
-
- org.objectweb.asm.ClassVisitor
-
- io.quarkus.panache.common.deployment.visitors.PanacheRepositoryClassOperationGenerationVisitor
-
public class PanacheRepositoryClassOperationGenerationVisitor extends org.objectweb.asm.ClassVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected Function<String,org.jboss.jandex.Type>argMapperstatic ByteCodeTypeCLASSprotected StringdaoBinaryNameprotected org.jboss.jandex.ClassInfodaoClassInfoprotected StringentitySignatureprotected org.objectweb.asm.TypeentityTypeprotected ByteCodeTypeentityUpperBoundprotected org.jboss.jandex.IndexViewindexViewprotected org.jboss.jandex.ClassInfopanacheRepositoryBaseClassInfoprotected Map<String,ByteCodeType>typeArgumentsprotected Set<String>userMethods
-
Constructor Summary
Constructors Constructor Description PanacheRepositoryClassOperationGenerationVisitor(String className, org.objectweb.asm.ClassVisitor outputClassVisitor, org.jboss.jandex.IndexView indexView, TypeBundle typeBundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddiscoverTypeParameters(org.jboss.jandex.ClassInfo classInfo, org.jboss.jandex.IndexView indexView, TypeBundle types, ByteCodeType baseType)protected voidgenerateJvmBridge(org.jboss.jandex.MethodInfo method)protected voidgenerateModelBridge(org.jboss.jandex.MethodInfo method, org.jboss.jandex.AnnotationInstance bridge)protected voidinjectModel(org.objectweb.asm.MethodVisitor mv)voidvisit(int version, int access, String name, String signature, String superName, String[] interfaces)voidvisitEnd()org.objectweb.asm.MethodVisitorvisitMethod(int access, String methodName, String descriptor, String signature, String[] exceptions)
-
-
-
Field Detail
-
CLASS
public static final ByteCodeType CLASS
-
entityType
protected org.objectweb.asm.Type entityType
-
entitySignature
protected String entitySignature
-
daoBinaryName
protected String daoBinaryName
-
daoClassInfo
protected org.jboss.jandex.ClassInfo daoClassInfo
-
panacheRepositoryBaseClassInfo
protected org.jboss.jandex.ClassInfo panacheRepositoryBaseClassInfo
-
indexView
protected org.jboss.jandex.IndexView indexView
-
typeArguments
protected Map<String,ByteCodeType> typeArguments
-
entityUpperBound
protected ByteCodeType entityUpperBound
-
-
Constructor Detail
-
PanacheRepositoryClassOperationGenerationVisitor
public PanacheRepositoryClassOperationGenerationVisitor(String className, org.objectweb.asm.ClassVisitor outputClassVisitor, org.jboss.jandex.IndexView indexView, TypeBundle typeBundle)
-
-
Method Detail
-
injectModel
protected void injectModel(org.objectweb.asm.MethodVisitor mv)
-
visit
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)- Overrides:
visitin classorg.objectweb.asm.ClassVisitor
-
discoverTypeParameters
protected void discoverTypeParameters(org.jboss.jandex.ClassInfo classInfo, org.jboss.jandex.IndexView indexView, TypeBundle types, ByteCodeType baseType)
-
visitMethod
public org.objectweb.asm.MethodVisitor visitMethod(int access, String methodName, String descriptor, String signature, String[] exceptions)- Overrides:
visitMethodin classorg.objectweb.asm.ClassVisitor
-
visitEnd
public void visitEnd()
- Overrides:
visitEndin classorg.objectweb.asm.ClassVisitor
-
generateJvmBridge
protected void generateJvmBridge(org.jboss.jandex.MethodInfo method)
-
generateModelBridge
protected void generateModelBridge(org.jboss.jandex.MethodInfo method, org.jboss.jandex.AnnotationInstance bridge)
-
-