Class ConstructorBuilder

  • All Implemented Interfaces:
    java.lang.reflect.AnnotatedElement

    public final class ConstructorBuilder
    extends ConstructorInfo
    • Field Detail

      • returnCodeGenerator

        boolean returnCodeGenerator
    • Constructor Detail

      • ConstructorBuilder

        public ConstructorBuilder​(int modifiers,
                                  TypeList parameterTypes,
                                  TypeList thrownTypes,
                                  TypeBuilder<?> declaringType)
    • Method Detail

      • verifyTypeCreated

        private void verifyTypeCreated()
      • isFinished

        public boolean isFinished()
      • isTypeCreated

        public boolean isTypeCreated()
      • getParameterTypes

        public TypeList getParameterTypes()
      • setParameterTypes

        public void setParameterTypes​(TypeList parameterTypes)
      • getDefinedParameters

        public java.util.List<ParameterBuilder> getDefinedParameters()
      • defineParameter

        public void defineParameter​(int position,
                                    java.lang.String name)
      • getAnnotation

        public <T extends java.lang.annotation.Annotation> T getAnnotation​(java.lang.Class<T> annotationClass)
        Specified by:
        getAnnotation in interface java.lang.reflect.AnnotatedElement
        Overrides:
        getAnnotation in class ConstructorInfo
      • getAnnotations

        @NotNull
        public java.lang.annotation.Annotation[] getAnnotations()
        Specified by:
        getAnnotations in interface java.lang.reflect.AnnotatedElement
        Overrides:
        getAnnotations in class ConstructorInfo
      • getDeclaredAnnotations

        @NotNull
        public java.lang.annotation.Annotation[] getDeclaredAnnotations()
        Specified by:
        getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
        Overrides:
        getDeclaredAnnotations in class ConstructorInfo
      • isAnnotationPresent

        public boolean isAnnotationPresent​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
        Specified by:
        isAnnotationPresent in interface java.lang.reflect.AnnotatedElement
        Overrides:
        isAnnotationPresent in class ConstructorInfo
      • addCustomAnnotation

        public void addCustomAnnotation​(AnnotationBuilder<? extends java.lang.annotation.Annotation> annotation)