Class FieldBuilder

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

    public final class FieldBuilder
    extends FieldInfo
    • Field Detail

      • _typeBuilder

        private final TypeBuilder<?> _typeBuilder
      • _name

        private final java.lang.String _name
      • _modifiers

        private final int _modifiers
      • _constantValue

        private final java.lang.Object _constantValue
      • _type

        private Type<?> _type
    • Constructor Detail

      • FieldBuilder

        FieldBuilder​(TypeBuilder<?> typeBuilder,
                     java.lang.String name,
                     Type<?> type,
                     int modifiers,
                     java.lang.Object constantValue)
    • Method Detail

      • getCreatedField

        FieldInfo getCreatedField()
      • addCustomAnnotation

        public <A extends java.lang.annotation.Annotation> void addCustomAnnotation​(AnnotationBuilder<A> annotation)
      • verifyTypeNotCreated

        void verifyTypeNotCreated()
      • setFieldType

        public void setFieldType​(Type<?> fieldType)
      • getRawField

        public java.lang.reflect.Field getRawField()
        Specified by:
        getRawField in class FieldInfo
      • getName

        public java.lang.String getName()
        Specified by:
        getName in class MemberInfo
      • getConstantValue

        public java.lang.Object getConstantValue()
      • 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 FieldInfo
      • getAnnotations

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

        @NotNull
        public java.lang.annotation.Annotation[] getDeclaredAnnotations()
        Specified by:
        getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
        Overrides:
        getDeclaredAnnotations in class FieldInfo
      • 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 FieldInfo