Class Type.ClassTy

  • All Implemented Interfaces:
    Type
    Enclosing interface:
    Type

    public abstract static class Type.ClassTy
    extends java.lang.Object
    implements Type
    A class type.

    Qualified types (e.g. OuterClass<Foo>.InnerClass<Bar>) are repesented as a list Type.ClassTy.SimpleClassTys (enclosing types first), each of which contains a ClassSymbol and an optional list of type arguments.

    • Constructor Detail

      • ClassTy

        public ClassTy()
    • Method Detail

      • tyKind

        public Type.TyKind tyKind()
        Description copied from interface: Type
        The type kind.
        Specified by:
        tyKind in interface Type
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        @Memoized
        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public final boolean equals​(@Nullable java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object