Class AppliedAnnotationObject.BuilderC

Direct Known Subclasses:
BeancAnnotation.Builder
Enclosing class:
AppliedAnnotationObject

Builder for applied annotations targeting constructors.

Adds constructor targeting capabilities to the base builder:

Example:

// Target specific constructors Constructor<?> ctor = MyClass.class.getConstructor(String.class, int.class); MyAnnotation annotation = MyAnnotation .create() .on(ctor) .build();

  • Constructor Details

    • BuilderC

      public BuilderC(Class<? extends Annotation> annotationType)
      Constructor.
      Parameters:
      annotationType - The annotation type of the annotation implementation class.
  • Method Details