Interface HasAnnotationUsage<T extends HasAnnotationUsage<T>>

    • Method Detail

      • add

        default T add​(AnnotationUsage annotation)
        Adds the specified AnnotationUsage to this model.
        Parameters:
        annotation - the new child
        Returns:
        a reference to this
      • annotate

        default T annotate​(Type annotation)
        Creates an AnnotationUsage with the specified Type and adds it to this model.
        Parameters:
        annotation - the new annotation usage
        Returns:
        a reference to this
        Since:
        2.5
      • annotate

        default T annotate​(Type annotation,
                           String textValue)
        Creates an AnnotationUsage with the specified Type and adds it to this model. This method will also set the value() of the annotation to textValue.
        Parameters:
        annotation - the new annotation usage
        textValue - the value of the text for this annotation
        Returns:
        a reference to this
        Since:
        2.5
      • getAnnotations

        List<AnnotationUsage> getAnnotations()
        Returns a list of all the annotation usages in this model.

        The list returned must be mutable for changes!

        Returns:
        the annotations.