Class PanacheEntityClassOperationGenerationVisitor
- java.lang.Object
-
- org.objectweb.asm.ClassVisitor
-
- io.quarkus.panache.common.deployment.visitors.PanacheEntityClassOperationGenerationVisitor
-
public class PanacheEntityClassOperationGenerationVisitor extends org.objectweb.asm.ClassVisitorA visitor that adds Panache operations to a Panache entity type.
-
-
Field Summary
Fields Modifier and Type Field Description protected Function<String,org.jboss.jandex.Type>argMapperprotected org.jboss.jandex.ClassInfoentityInfoprotected ByteCodeTypeentityUpperBoundprotected List<PanacheMethodCustomizer>methodCustomizersprotected org.jboss.jandex.ClassInfopanacheEntityBaseClassInfoprotected org.objectweb.asm.TypethisClassprotected Map<String,ByteCodeType>typeArgumentsprotected TypeBundletypeBundle
-
Constructor Summary
Constructors Constructor Description PanacheEntityClassOperationGenerationVisitor(org.objectweb.asm.ClassVisitor outputClassVisitor, TypeBundle typeBundle, org.jboss.jandex.ClassInfo entityInfo, List<PanacheMethodCustomizer> methodCustomizers, org.jboss.jandex.IndexView indexView)
-
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 voidgenerateMethod(org.jboss.jandex.MethodInfo method, org.jboss.jandex.AnnotationValue targetReturnTypeErased, org.jboss.jandex.AnnotationValue callSuperMethod)protected voidinjectModel(org.objectweb.asm.MethodVisitor mv)voidvisitEnd()org.objectweb.asm.MethodVisitorvisitMethod(int access, String methodName, String descriptor, String signature, String[] exceptions)
-
-
-
Field Detail
-
thisClass
protected org.objectweb.asm.Type thisClass
-
typeBundle
protected TypeBundle typeBundle
-
panacheEntityBaseClassInfo
protected final org.jboss.jandex.ClassInfo panacheEntityBaseClassInfo
-
entityInfo
protected org.jboss.jandex.ClassInfo entityInfo
-
methodCustomizers
protected List<PanacheMethodCustomizer> methodCustomizers
-
typeArguments
protected final Map<String,ByteCodeType> typeArguments
-
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:
visitMethodin classorg.objectweb.asm.ClassVisitor
-
visitEnd
public void visitEnd()
- Overrides:
visitEndin classorg.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)
-
-