public class DefaultAnnotationFormatter extends Object implements AnnotationFormatter
Constructor and Description |
---|
DefaultAnnotationFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
formatAnnotationMirror(AnnotationMirror anno)
Returns the string representation of a single AnnotationMirror, without showing full package
names.
|
String |
formatAnnotationString(Collection<? extends 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.
|
static boolean |
isInvisibleQualified(AnnotationMirror anno)
Returns true if, by default, anno should not be printed.
|
public static boolean isInvisibleQualified(AnnotationMirror anno)
anno
- the annotation mirror to testInvisibleQualifier
@SideEffectFree public String formatAnnotationString(Collection<? extends AnnotationMirror> annos, boolean printInvisible)
formatAnnotationString
in interface AnnotationFormatter
annos
- a collection of annotations to printprintInvisible
- whether or not to print "invisible" annotation mirrorsInvisibleQualifier
@SideEffectFree public String formatAnnotationMirror(AnnotationMirror anno)
formatAnnotationMirror
in interface AnnotationFormatter
anno
- the annotation mirror to convert