protected class CheckerAdapter.QualAnnotationFormatterAdapter extends Object implements AnnotatedTypeFormatter, AnnotationFormatter
Constructor and Description |
---|
QualAnnotationFormatterAdapter(QualifiedTypeFormatter<Q> qualifiedTypeFormatter) |
Modifier and Type | Method and Description |
---|---|
String |
format(AnnotatedTypeMirror type)
Formats type into a String.
|
String |
format(AnnotatedTypeMirror type,
boolean printInvisibles)
Formats type into a String.
|
String |
formatAnnotationMirror(AnnotationMirror anno)
Converts an individual annotation mirror into a String
|
String |
formatAnnotationString(Collection<? extends AnnotationMirror> annos,
boolean printInvisible)
Converts a collection of annotation mirrors into a String
|
public QualAnnotationFormatterAdapter(QualifiedTypeFormatter<Q> qualifiedTypeFormatter)
public String format(AnnotatedTypeMirror type)
AnnotatedTypeFormatter
format
in interface AnnotatedTypeFormatter
type
- The type to be convertedInvisibleQualifier
public String format(AnnotatedTypeMirror type, boolean printInvisibles)
AnnotatedTypeFormatter
format
in interface AnnotatedTypeFormatter
type
- The type to be convertedprintInvisibles
- whether or not to print invisible annotationsInvisibleQualifier
public String formatAnnotationString(Collection<? extends AnnotationMirror> annos, boolean printInvisible)
AnnotationFormatter
formatAnnotationString
in interface AnnotationFormatter
annos
- A collection of annotations to printprintInvisible
- Whether or not to print "invisible" annotation mirrorsInvisibleQualifier
public String formatAnnotationMirror(AnnotationMirror anno)
AnnotationFormatter
formatAnnotationMirror
in interface AnnotationFormatter
anno
- The annotation mirror to convert