Interface AnnotatedElementBuilder<T extends AnnotatedElementBuilder<?>>

    • Method Detail

      • addAnnotation

        T addAnnotation​(Type type)
        Add an annotation of the given type
        Parameters:
        type - the annotation type
        Returns:
        a AnnotatedElementBuilder instance for invocation chaining
      • addAnnotation

        T addAnnotation​(Type type,
                        String value)
        Add an annotation of the given type and with the given value
        Parameters:
        type - the annotation type
        value - the annotation value
        Returns:
        a AnnotatedElementBuilder instance for invocation chaining
      • addAnnotation

        T addAnnotation​(Types.Predefined type)
        Add a predefined annotation
        Parameters:
        type - predefined annotation type
        Returns:
        a AnnotatedElementBuilder instance for invocation chaining
      • addAnnotation

        T addAnnotation​(Types.Predefined type,
                        String value)
        Add a predefined annotation with a value
        Parameters:
        type - predefined annotation type
        value - annotation value
        Returns:
        a AnnotatedElementBuilder instance for invocation chaining
      • addAnnotation

        T addAnnotation​(Type type,
                        Consumer<TypedValueBuilder> builderCallback)
        Add an annotation of the given type and with the given values array
        Parameters:
        type - the annotation type
        builderCallback - the annotation attributes builder callback
        Returns:
        a AnnotatedElementBuilder instance for invocation chaining
      • addAnnotation

        T addAnnotation​(Types.Predefined type,
                        Consumer<TypedValueBuilder> builderCallback)
        Add an annotation of the given type and with the given values array
        Parameters:
        type - the annotation type
        builderCallback - the annotation attributes builder callback
        Returns:
        a AnnotatedElementBuilder instance for invocation chaining