Interface TypePool.Default.LazyTypeDescription.TypeContainment

All Known Implementing Classes:
TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained, TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod, TypePool.Default.LazyTypeDescription.TypeContainment.WithinType
Enclosing class:
TypePool.Default.LazyTypeDescription

protected static interface TypePool.Default.LazyTypeDescription.TypeContainment
A declaration context encapsulates information about whether a type was declared within another type or within a method of another type.
  • Method Details

    • getEnclosingMethod

      Returns the enclosing method or null if no such method exists.
      Parameters:
      typePool - The type pool to be used for looking up linked types.
      Returns:
      A method description describing the linked type or null.
    • getEnclosingType

      @MaybeNull TypeDescription getEnclosingType(TypePool typePool)
      Returns the enclosing type or null if no such type exists.
      Parameters:
      typePool - The type pool to be used for looking up linked types.
      Returns:
      A type description describing the linked type or null.
    • isSelfContained

      boolean isSelfContained()
      Returns true if the type is self-contained.
      Returns:
      true if the type is self-contained.
    • isLocalType

      boolean isLocalType()
      Returns true if the type is a local type unless it is an anonymous type.
      Returns:
      true if the type is a local type unless it is an anonymous type