Package io.quarkus.arc.processor
Class SubclassGenerator
java.lang.Object
io.quarkus.arc.processor.SubclassGenerator
A subclass is generated for any intercepted/decorated bean.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected final booleanprotected final ReflectionRegistration -
Constructor Summary
ConstructorsConstructorDescriptionSubclassGenerator(AnnotationLiteralProcessor annotationLiterals, Predicate<org.jboss.jandex.DotName> applicationClassPredicate, boolean generateSources, ReflectionRegistration reflectionRegistration, Set<String> existingClasses, io.quarkus.arc.processor.BeanProcessor.PrivateMembersCollector privateMembers) -
Method Summary
Modifier and TypeMethodDescriptionprotected io.quarkus.gizmo.FieldDescriptorcreateConstructor(io.quarkus.gizmo.ClassOutput classOutput, BeanInfo bean, io.quarkus.gizmo.ClassCreator subclass, org.jboss.jandex.Type providerType, String providerTypeName, ReflectionRegistration reflectionRegistration) protected voidcreateDestroy(io.quarkus.gizmo.ClassOutput classOutput, BeanInfo bean, io.quarkus.gizmo.ClassCreator subclass, io.quarkus.gizmo.FieldDescriptor preDestroysField) protected StringgetBaseName(String beanClassName) protected booleanisPackagePrivate(int mod) protected booleanisReflectionFallbackNeeded(org.jboss.jandex.FieldInfo field, String targetPackage, BeanInfo bean) protected booleanisReflectionFallbackNeeded(org.jboss.jandex.MethodInfo method, String targetPackage)
-
Field Details
-
FIELD_NAME_PREDESTROYS
- See Also:
-
FIELD_NAME_CONSTRUCTED
- See Also:
-
generateSources
protected final boolean generateSources -
reflectionRegistration
-
-
Constructor Details
-
SubclassGenerator
public SubclassGenerator(AnnotationLiteralProcessor annotationLiterals, Predicate<org.jboss.jandex.DotName> applicationClassPredicate, boolean generateSources, ReflectionRegistration reflectionRegistration, Set<String> existingClasses, io.quarkus.arc.processor.BeanProcessor.PrivateMembersCollector privateMembers)
-
-
Method Details
-
createConstructor
protected io.quarkus.gizmo.FieldDescriptor createConstructor(io.quarkus.gizmo.ClassOutput classOutput, BeanInfo bean, io.quarkus.gizmo.ClassCreator subclass, org.jboss.jandex.Type providerType, String providerTypeName, ReflectionRegistration reflectionRegistration) -
createDestroy
protected void createDestroy(io.quarkus.gizmo.ClassOutput classOutput, BeanInfo bean, io.quarkus.gizmo.ClassCreator subclass, io.quarkus.gizmo.FieldDescriptor preDestroysField) - Parameters:
classOutput-bean-subclass-preDestroysField-
-
getBaseName
-
isReflectionFallbackNeeded
protected boolean isReflectionFallbackNeeded(org.jboss.jandex.MethodInfo method, String targetPackage) -
isReflectionFallbackNeeded
-
isPackagePrivate
protected boolean isPackagePrivate(int mod)
-