Class UnitsAnnotatedTypeFormatter.UnitsAnnotationFormatter

    • Field Detail

      • elements

        protected final javax.lang.model.util.Elements elements
    • Constructor Detail

      • UnitsAnnotationFormatter

        public UnitsAnnotationFormatter​(BaseTypeChecker checker)
    • Method Detail

      • formatAnnotationString

        public java.lang.String formatAnnotationString​(java.util.Collection<? extends javax.lang.model.element.AnnotationMirror> annos,
                                                       boolean printInvisible)
        Description copied from class: DefaultAnnotationFormatter
        Creates a String of each annotation in annos separated by a single space character and terminated by a space character, obeying the printInvisible parameter.
        Specified by:
        formatAnnotationString in interface AnnotationFormatter
        Overrides:
        formatAnnotationString in class DefaultAnnotationFormatter
        Parameters:
        annos - a collection of annotations to print
        printInvisible - whether or not to print "invisible" annotation mirrors
        Returns:
        the list of annotations converted to a String
        See Also:
        InvisibleQualifier