protected static class UnitsAnnotatedTypeFormatter.UnitsAnnotationFormatter extends DefaultAnnotationFormatter
Modifier and Type | Field and Description |
---|---|
protected BaseTypeChecker |
checker |
protected javax.lang.model.util.Elements |
elements |
Constructor and Description |
---|
UnitsAnnotationFormatter(BaseTypeChecker checker) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatAnnotationString(java.util.Collection<? extends javax.lang.model.element.AnnotationMirror> annos,
boolean printInvisible)
Creates a String of each annotation in annos separated by a single space character and
terminated by a space character, obeying the printInvisible parameter.
|
formatAnnotationMirror, formatAnnotationMirror, formatAnnotationMirrorArg, isInvisibleQualified
protected final BaseTypeChecker checker
protected final javax.lang.model.util.Elements elements
public UnitsAnnotationFormatter(BaseTypeChecker checker)
public java.lang.String formatAnnotationString(java.util.Collection<? extends javax.lang.model.element.AnnotationMirror> annos, boolean printInvisible)
DefaultAnnotationFormatter
formatAnnotationString
in interface AnnotationFormatter
formatAnnotationString
in class DefaultAnnotationFormatter
annos
- a collection of annotations to printprintInvisible
- whether or not to print "invisible" annotation mirrorsInvisibleQualifier