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 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

      @SideEffectFree String format(AnnotatedTypeMirror type, boolean printVerbose)
      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 that format(AnnotatedTypeMirror) shows. Therefore, format(type, false) returns the same string as format(type): printVerbose asks for optional extra detail on top of format(AnnotatedTypeMirror)'s output, not for a specific level of detail in its own right, so there is no argument that requests less detail than format(AnnotatedTypeMirror) already provides.
      Parameters:
      type - the type to be converted
      printVerbose - if true, print verbosely
      Returns:
      a string representation of type
      See Also: