Interface ClassType

  • All Superinterfaces:
    AnnotationTarget, Type

    public interface ClassType
    extends Type
    A class type, including interface types, enum types, annotation types and record types. Class types are introduced by class declarations.
    Since:
    4.0
    • Method Detail

      • kind

        default Type.Kind kind()
        Description copied from interface: Type
        Returns the kind of this type.
        Specified by:
        kind in interface Type
        Returns:
        the kind of this type
      • asClass

        default ClassType asClass()
        Description copied from interface: Type
        Returns this type as a class type.
        Specified by:
        asClass in interface Type
        Returns:
        this class type, never null