Class AnnotationBuilder<A extends java.lang.annotation.Annotation>


  • public final class AnnotationBuilder<A extends java.lang.annotation.Annotation>
    extends java.lang.Object
    • Field Detail

      • _annotationType

        private final Type<A extends java.lang.annotation.Annotation> _annotationType
      • _attributes

        private final MethodList _attributes
      • _values

        private final ReadOnlyList<java.lang.Object> _values
      • _bakedAnnotation

        private A extends java.lang.annotation.Annotation _bakedAnnotation
    • Constructor Detail

      • AnnotationBuilder

        private AnnotationBuilder​(Type<A> annotationType,
                                  MethodList attributes,
                                  ReadOnlyList<java.lang.Object> values)
    • Method Detail

      • getAnnotation

        public A getAnnotation()
      • getAnnotationType

        public Type<A> getAnnotationType()
      • getAttributes

        public MethodList getAttributes()
      • getValues

        public ReadOnlyList<java.lang.Object> getValues()
      • create

        public static <A extends java.lang.annotation.Annotation> AnnotationBuilder<A> create​(Type<A> annotationType)
      • create

        public static <A extends java.lang.annotation.Annotation> AnnotationBuilder<A> create​(Type<A> annotationType,
                                                                                              java.lang.Object value)
      • checkProperties

        private static <A extends java.lang.annotation.Annotation> void checkProperties​(Type<A> annotationType,
                                                                                        MethodList properties,
                                                                                        ReadOnlyList<java.lang.Object> values)
      • bake

        void bake()