public class DefaultAnnotationFormatter extends Object implements AnnotationFormatter
Constructor and Description |
---|
DefaultAnnotationFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
formatAnnotationMirror(AnnotationMirror anno)
Converts an individual annotation mirror into a String
|
protected void |
formatAnnotationMirror(AnnotationMirror am,
StringBuilder sb)
A helper method to output a single AnnotationMirror, without showing full package names.
|
protected void |
formatAnnotationMirrorArg(AnnotationValue av,
StringBuilder sb) |
String |
formatAnnotationString(Collection<? extends AnnotationMirror> annos,
boolean printInvisible)
Creates a space String of each annotation in annos separated by a single 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)
InvisibleQualifier
@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)
AnnotationFormatter
formatAnnotationMirror
in interface AnnotationFormatter
anno
- the annotation mirror to convertprotected void formatAnnotationMirror(AnnotationMirror am, StringBuilder sb)
protected void formatAnnotationMirrorArg(AnnotationValue av, StringBuilder sb)