Package com.strobel.reflection.emit
Class AnnotationBuilder<A extends Annotation>
java.lang.Object
com.strobel.reflection.emit.AnnotationBuilder<A>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodList
private A
private final ReadOnlyList
<Object> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
AnnotationBuilder
(Type<A> annotationType, MethodList attributes, ReadOnlyList<Object> values) -
Method Summary
Modifier and TypeMethodDescription(package private) void
bake()
private static <A extends Annotation>
voidcheckProperties
(Type<A> annotationType, MethodList properties, ReadOnlyList<Object> values) static <A extends Annotation>
AnnotationBuilder<A> static <A extends Annotation>
AnnotationBuilder<A> create
(Type<A> annotationType, MethodList properties, ReadOnlyList<Object> values) static <A extends Annotation>
AnnotationBuilder<A>
-
Field Details
-
_annotationType
-
_attributes
-
_values
-
_bakedAnnotation
-
-
Constructor Details
-
AnnotationBuilder
private AnnotationBuilder(Type<A> annotationType, MethodList attributes, ReadOnlyList<Object> values)
-
-
Method Details
-
getAnnotation
-
getAnnotationType
-
getAttributes
-
getValues
-
create
public static <A extends Annotation> AnnotationBuilder<A> create(Type<A> annotationType, MethodList properties, ReadOnlyList<Object> values) -
create
-
create
public static <A extends Annotation> AnnotationBuilder<A> create(Type<A> annotationType, Object value) -
checkProperties
private static <A extends Annotation> void checkProperties(Type<A> annotationType, MethodList properties, ReadOnlyList<Object> values) -
bake
void bake()
-