Class AppliedAnnotationObject.BuilderMF

Direct Known Subclasses:
BeanpAnnotation.Builder, NamePropertyAnnotation.Builder, ParentPropertyAnnotation.Builder
Enclosing class:
AppliedAnnotationObject

Builder for applied annotations targeting methods and fields.

Adds method and field targeting capabilities to the base builder:

Example:

// Target specific methods and fields Method method = MyClass.class.getMethod("myMethod"); Field field = MyClass.class.getField("myField"); MyAnnotation annotation = MyAnnotation .create() .on(method) .on(field) .build();