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) |
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 AnnotationFormatterannos - A collection of annotations to printprintInvisible - Whether or not to print "invisible" annotation mirrorsInvisibleQualifier@SideEffectFree public String formatAnnotationMirror(AnnotationMirror anno)
AnnotationFormatterformatAnnotationMirror in interface AnnotationFormatteranno - The annotation mirror to convertprotected void formatAnnotationMirror(AnnotationMirror am, StringBuilder sb)
protected void formatAnnotationMirrorArg(AnnotationValue av, StringBuilder sb)