Interface AnnotatedTypeFormatter
- All Known Implementing Classes:
DefaultAnnotatedTypeFormatter,UnitsAnnotatedTypeFormatter
public interface AnnotatedTypeFormatter
Converts an AnnotatedTypeMirror mirror into a formatted string. For converting AnnotationMirrors:
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionformat(AnnotatedTypeMirror type) Formats type into a String.format(AnnotatedTypeMirror type, boolean printVerbose) Formats type into a String.
-
Method Details
-
format
Formats type into a String. Uses an implementation specific default for printing "invisible annotations"- Parameters:
type- the type to be converted- Returns:
- a string representation of type
- See Also:
-
format
Formats type into a String. Verbose printing shows details, such as invisible annotations, that an implementation's default might omit; it never hides a detail thatformat(AnnotatedTypeMirror)shows. Therefore,format(type, false)returns the same string asformat(type):printVerboseasks for optional extra detail on top offormat(AnnotatedTypeMirror)'s output, not for a specific level of detail in its own right, so there is no argument that requests less detail thanformat(AnnotatedTypeMirror)already provides.- Parameters:
type- the type to be convertedprintVerbose- if true, print verbosely- Returns:
- a string representation of type
- See Also:
-