public class DefaultAnnotatedTypeFormatter extends Object implements AnnotatedTypeFormatter
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultAnnotatedTypeFormatter.FormattingVisitor
A scanning visitor that prints the entire AnnotatedTypeMirror passed to visit.
|
Modifier and Type | Field and Description |
---|---|
protected DefaultAnnotatedTypeFormatter.FormattingVisitor |
formattingVisitor |
Modifier | Constructor and Description |
---|---|
|
DefaultAnnotatedTypeFormatter()
Constructs a DefaultAnnotatedTypeFormatter that does not print invisible annotations by
default
|
|
DefaultAnnotatedTypeFormatter(AnnotationFormatter formatter,
boolean printVerboseGenerics,
boolean defaultPrintInvisibleAnnos) |
|
DefaultAnnotatedTypeFormatter(boolean printVerboseGenerics,
boolean defaultPrintInvisibleAnnos) |
protected |
DefaultAnnotatedTypeFormatter(DefaultAnnotatedTypeFormatter.FormattingVisitor visitor)
Used by subclasses and other constructors to specify the underlying implementation of this
DefaultAnnotatedTypeFormatter
|
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.
|
protected final DefaultAnnotatedTypeFormatter.FormattingVisitor formattingVisitor
public DefaultAnnotatedTypeFormatter()
public DefaultAnnotatedTypeFormatter(boolean printVerboseGenerics, boolean defaultPrintInvisibleAnnos)
printVerboseGenerics
- for type parameters, their uses, and wildcards, print more
informationdefaultPrintInvisibleAnnos
- whether or not this AnnotatedTypeFormatter should print
invisible annotationspublic DefaultAnnotatedTypeFormatter(AnnotationFormatter formatter, boolean printVerboseGenerics, boolean defaultPrintInvisibleAnnos)
formatter
- an object that converts annotation mirrors to stringsprintVerboseGenerics
- for type parameters, their uses, and wildcards, print more
informationdefaultPrintInvisibleAnnos
- whether or not this AnnotatedTypeFormatter should print
invisible annotationsprotected DefaultAnnotatedTypeFormatter(DefaultAnnotatedTypeFormatter.FormattingVisitor visitor)
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