Class AppliedAnnotationObject.BuilderTMFC

Enclosing class:
AppliedAnnotationObject

Builder for applied annotations targeting classes, methods, fields, and constructors.

The most comprehensive builder variant, combining all targeting capabilities from AppliedAnnotationObject.BuilderT, AppliedAnnotationObject.BuilderM, field targeting, and AppliedAnnotationObject.BuilderC, providing complete targeting for all program elements.

Example:

// Target any program element MyAnnotation annotation = MyAnnotation .create() .on(MyClass.class) // Target class .on(MyClass.class.getMethod("myMethod")) // Target method .on(MyClass.class.getField("myField")) // Target field .on(MyClass.class.getConstructor()) // Target constructor .build();

  • Constructor Details

    • BuilderTMFC

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