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 printVerbose)
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 printVerbose)
AnnotatedTypeFormatter
format
in interface AnnotatedTypeFormatter
type
- the type to be convertedprintVerbose
- whether or not to print verboselyInvisibleQualifier
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