Class DefaultAnnotatedTypeFormatter

java.lang.Object
org.checkerframework.framework.type.DefaultAnnotatedTypeFormatter
All Implemented Interfaces:
AnnotatedTypeFormatter
Direct Known Subclasses:
NullnessAnnotatedTypeFormatter, UnitsAnnotatedTypeFormatter

public class DefaultAnnotatedTypeFormatter extends Object implements AnnotatedTypeFormatter
An AnnotatedTypeFormatter used by default by all AnnotatedTypeFactory (and therefore all annotated types).
See Also:
  • Field Details

  • Constructor Details

    • DefaultAnnotatedTypeFormatter

      public DefaultAnnotatedTypeFormatter()
      Constructs a DefaultAnnotatedTypeFormatter that does not print invisible annotations by default.
    • DefaultAnnotatedTypeFormatter

      public DefaultAnnotatedTypeFormatter(boolean printVerboseGenerics, boolean defaultPrintInvisibleAnnos)
      Parameters:
      printVerboseGenerics - for type parameters, their uses, and wildcards, print more information
      defaultPrintInvisibleAnnos - whether or not this AnnotatedTypeFormatter should print invisible annotations
    • DefaultAnnotatedTypeFormatter

      public DefaultAnnotatedTypeFormatter(AnnotationFormatter formatter, boolean printVerboseGenerics, boolean defaultPrintInvisibleAnnos)
      Parameters:
      formatter - an object that converts annotation mirrors to strings
      printVerboseGenerics - for type parameters, their uses, and wildcards, print more information
      defaultPrintInvisibleAnnos - whether or not this AnnotatedTypeFormatter should print invisible annotations
    • DefaultAnnotatedTypeFormatter

      protected DefaultAnnotatedTypeFormatter(DefaultAnnotatedTypeFormatter.FormattingVisitor visitor)
      Used by subclasses and other constructors to specify the underlying implementation of this DefaultAnnotatedTypeFormatter.
  • Method Details