Class BeanGenerator

    • Field Detail

      • FIELD_NAME_DECLARING_PROVIDER_SUPPLIER

        protected static final String FIELD_NAME_DECLARING_PROVIDER_SUPPLIER
        See Also:
        Constant Field Values
      • applicationClassPredicate

        protected final Predicate<org.jboss.jandex.DotName> applicationClassPredicate
      • privateMembers

        protected final io.quarkus.arc.processor.BeanProcessor.PrivateMembersCollector privateMembers
      • existingClasses

        protected final Set<String> existingClasses
      • beanToGeneratedBaseName

        protected final Map<BeanInfo,​String> beanToGeneratedBaseName
      • injectionPointAnnotationsPredicate

        protected final Predicate<org.jboss.jandex.DotName> injectionPointAnnotationsPredicate
      • suppressConditionGenerators

        protected final List<Function<BeanInfo,​Consumer<io.quarkus.gizmo.BytecodeCreator>>> suppressConditionGenerators
      • generateSources

        protected final boolean generateSources
    • Method Detail

      • implementDestroy

        protected void implementDestroy​(BeanInfo bean,
                                        io.quarkus.gizmo.ClassCreator beanCreator,
                                        io.quarkus.arc.processor.BeanGenerator.ProviderType providerType,
                                        Map<InjectionPointInfo,​String> injectionPointToProviderField,
                                        boolean isApplicationClass,
                                        String baseName,
                                        String targetPackage)
      • implementCreate

        protected void implementCreate​(io.quarkus.gizmo.ClassOutput classOutput,
                                       io.quarkus.gizmo.ClassCreator beanCreator,
                                       BeanInfo bean,
                                       io.quarkus.arc.processor.BeanGenerator.ProviderType providerType,
                                       String baseName,
                                       Map<InjectionPointInfo,​String> injectionPointToProviderSupplierField,
                                       Map<InterceptorInfo,​String> interceptorToProviderSupplierField,
                                       Map<DecoratorInfo,​String> decoratorToProviderSupplierField,
                                       String targetPackage,
                                       boolean isApplicationClass)
      • implementGet

        protected void implementGet​(BeanInfo bean,
                                    io.quarkus.gizmo.ClassCreator beanCreator,
                                    io.quarkus.arc.processor.BeanGenerator.ProviderType providerType,
                                    String baseName)
      • implementGetTypes

        protected void implementGetTypes​(io.quarkus.gizmo.ClassCreator beanCreator,
                                         io.quarkus.gizmo.FieldDescriptor typesField)
        Parameters:
        beanCreator -
        See Also:
        InjectableBean.getTypes()
      • implementGetScope

        protected void implementGetScope​(BeanInfo bean,
                                         io.quarkus.gizmo.ClassCreator beanCreator)
        Parameters:
        bean -
        beanCreator -
        See Also:
        InjectableBean.getScope()
      • implementGetIdentifier

        protected void implementGetIdentifier​(BeanInfo bean,
                                              io.quarkus.gizmo.ClassCreator beanCreator)
        Parameters:
        bean -
        beanCreator -
        See Also:
        InjectableBean.getIdentifier()
      • implementEquals

        protected void implementEquals​(BeanInfo bean,
                                       io.quarkus.gizmo.ClassCreator beanCreator)
      • implementHashCode

        protected void implementHashCode​(BeanInfo bean,
                                         io.quarkus.gizmo.ClassCreator beanCreator)
      • implementToString

        protected void implementToString​(io.quarkus.gizmo.ClassCreator beanCreator)
      • implementGetQualifiers

        protected void implementGetQualifiers​(BeanInfo bean,
                                              io.quarkus.gizmo.ClassCreator beanCreator,
                                              io.quarkus.gizmo.FieldDescriptor qualifiersField)
        Parameters:
        bean -
        beanCreator -
        qualifiersField -
        See Also:
        InjectableBean.getQualifiers()
      • implementGetDeclaringBean

        protected void implementGetDeclaringBean​(io.quarkus.gizmo.ClassCreator beanCreator)
      • implementIsAlternative

        protected void implementIsAlternative​(BeanInfo bean,
                                              io.quarkus.gizmo.ClassCreator beanCreator)
      • implementGetPriority

        protected void implementGetPriority​(BeanInfo bean,
                                            io.quarkus.gizmo.ClassCreator beanCreator)
      • implementIsDefaultBean

        protected void implementIsDefaultBean​(BeanInfo bean,
                                              io.quarkus.gizmo.ClassCreator beanCreator)
      • implementGetStereotypes

        protected void implementGetStereotypes​(BeanInfo bean,
                                               io.quarkus.gizmo.ClassCreator beanCreator,
                                               io.quarkus.gizmo.FieldDescriptor stereotypesField)
      • implementGetBeanClass

        protected void implementGetBeanClass​(BeanInfo bean,
                                             io.quarkus.gizmo.ClassCreator beanCreator)
      • implementGetImplementationClass

        protected void implementGetImplementationClass​(BeanInfo bean,
                                                       io.quarkus.gizmo.ClassCreator beanCreator)
      • implementGetName

        protected void implementGetName​(BeanInfo bean,
                                        io.quarkus.gizmo.ClassCreator beanCreator)
      • implementGetKind

        protected void implementGetKind​(io.quarkus.gizmo.ClassCreator beanCreator,
                                        InjectableBean.Kind kind)
      • implementSupplierGet

        protected void implementSupplierGet​(io.quarkus.gizmo.ClassCreator beanCreator)
      • implementIsSuppressed

        protected void implementIsSuppressed​(BeanInfo bean,
                                             io.quarkus.gizmo.ClassCreator beanCreator)
      • getJavaMemberHandle

        public static io.quarkus.gizmo.ResultHandle getJavaMemberHandle​(io.quarkus.gizmo.MethodCreator bytecode,
                                                                        InjectionPointInfo injectionPoint,
                                                                        ReflectionRegistration reflectionRegistration)
      • collectInjectionPointAnnotations

        public static io.quarkus.gizmo.ResultHandle collectInjectionPointAnnotations​(BeanDeployment beanDeployment,
                                                                                     io.quarkus.gizmo.MethodCreator bytecode,
                                                                                     InjectionPointInfo injectionPoint,
                                                                                     AnnotationLiteralProcessor annotationLiterals,
                                                                                     Predicate<org.jboss.jandex.DotName> injectionPointAnnotationsPredicate)
      • collectQualifiers

        public static io.quarkus.gizmo.ResultHandle collectQualifiers​(BeanDeployment beanDeployment,
                                                                      io.quarkus.gizmo.MethodCreator bytecode,
                                                                      AnnotationLiteralProcessor annotationLiterals,
                                                                      Set<org.jboss.jandex.AnnotationInstance> qualifiers)
      • isReflectionFallbackNeeded

        protected boolean isReflectionFallbackNeeded​(org.jboss.jandex.MethodInfo method,
                                                     String targetPackage)
      • isReflectionFallbackNeeded

        protected boolean isReflectionFallbackNeeded​(org.jboss.jandex.FieldInfo field,
                                                     String targetPackage,
                                                     BeanInfo bean)
      • isPackagePrivate

        protected boolean isPackagePrivate​(int mod)