Interface AnnotationFormatter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String formatAnnotationMirror​(javax.lang.model.element.AnnotationMirror anno)
      Converts an individual annotation mirror into a String.
      java.lang.String formatAnnotationString​(java.util.Collection<? extends javax.lang.model.element.AnnotationMirror> annos, boolean printInvisible)
      Converts a collection of annotation mirrors into a String.
    • Method Detail

      • formatAnnotationString

        @SideEffectFree
        java.lang.String formatAnnotationString​(java.util.Collection<? extends javax.lang.model.element.AnnotationMirror> annos,
                                                boolean printInvisible)
        Converts a collection of annotation mirrors into a String.
        Parameters:
        annos - a collection of annotations to print
        printInvisible - whether or not to print "invisible" annotation mirrors
        Returns:
        a string representation of annos
        See Also:
        InvisibleQualifier
      • formatAnnotationMirror

        @SideEffectFree
        java.lang.String formatAnnotationMirror​(javax.lang.model.element.AnnotationMirror anno)
        Converts an individual annotation mirror into a String.
        Parameters:
        anno - the annotation mirror to convert
        Returns:
        a String representation of anno