Class KeyForAnnotatedTypeFactory.KeyForTypeHierarchy

All Implemented Interfaces:
TypeHierarchy, AtmComboVisitor<Boolean,Void>
Enclosing class:
KeyForAnnotatedTypeFactory

protected static class KeyForAnnotatedTypeFactory.KeyForTypeHierarchy extends DefaultTypeHierarchy
  • Constructor Details

    • KeyForTypeHierarchy

      public KeyForTypeHierarchy(BaseTypeChecker checker, QualifierHierarchy qualifierHierarchy, boolean ignoreRawTypes, boolean invariantArrayComponents)
  • Method Details

    • isSubtype

      protected boolean isSubtype(AnnotatedTypeMirror subtype, AnnotatedTypeMirror supertype, AnnotationMirror top)
      Description copied from class: DefaultTypeHierarchy
      Returns true if subtype <: supertype, but only for the hierarchy of which top is the top.
      Overrides:
      isSubtype in class DefaultTypeHierarchy
      Parameters:
      subtype - expected subtype
      supertype - expected supertype
      top - the top of the hierarchy for which we want to make a comparison
      Returns:
      true if subtype is a subtype of, or equal to, supertype in the qualifier hierarchy whose top is top