Class ParameterizedTypeImpl

  • All Implemented Interfaces:
    ParameterizedType, Type

    @Deprecated
    public class ParameterizedTypeImpl
    extends AbstractTypeImpl
    implements ParameterizedType
    Deprecated.
    Implementation of ParameterizedType, which represents an invocation of a generic class or interface.

    This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

    Since:
    1.5
    • Constructor Detail

      • ParameterizedTypeImpl

        ParameterizedTypeImpl​(DocEnv env,
                              com.sun.tools.javac.code.Type type)
        Deprecated.
    • Method Detail

      • typeArguments

        public Type[] typeArguments()
        Deprecated.
        Return the actual type arguments of this type.
        Specified by:
        typeArguments in interface ParameterizedType
        Returns:
        the actual type arguments of this type.
      • superclassType

        public Type superclassType()
        Deprecated.
        Return the class type that is a direct supertype of this one. Return null if this is an interface type.
        Specified by:
        superclassType in interface ParameterizedType
        Returns:
        the class type that is a direct supertype of this one.
      • interfaceTypes

        public Type[] interfaceTypes()
        Deprecated.
        Return the interface types directly implemented by or extended by this parameterized type. Return an empty array if there are no interfaces.
        Specified by:
        interfaceTypes in interface ParameterizedType
        Returns:
        the interface types directly implemented by or extended by this parameterized type.
      • containingType

        public Type containingType()
        Deprecated.
        Return the type that contains this type as a member. Return null is this is a top-level type.
        Specified by:
        containingType in interface ParameterizedType
        Returns:
        the type that contains this type as a member.
      • typeName

        public java.lang.String typeName()
        Deprecated.
        Description copied from interface: Type
        Return unqualified name of type excluding any dimension information.

        For example, a two dimensional array of String returns "String".

        Specified by:
        typeName in interface Type
        Overrides:
        typeName in class AbstractTypeImpl
        Returns:
        unqualified name of type excluding any dimension information.
      • asParameterizedType

        public ParameterizedType asParameterizedType()
        Deprecated.
        Description copied from interface: Type
        Return this type as a ParameterizedType if it represents an invocation of a generic class or interface. Array dimensions are ignored.
        Specified by:
        asParameterizedType in interface Type
        Overrides:
        asParameterizedType in class AbstractTypeImpl
        Returns:
        a ParameterizedType if the type is an invocation of a generic type, or null if it is not.
      • toString

        public java.lang.String toString()
        Deprecated.
        Description copied from interface: Type
        Return a string representation of the type. This includes any dimension information and type arguments.

        For example, a two dimensional array of String may return "java.lang.String[][]", and the parameterized type List<Integer> may return "java.util.List<java.lang.Integer>".

        Specified by:
        toString in interface Type
        Overrides:
        toString in class AbstractTypeImpl
        Returns:
        a string representation of the type.
      • parameterizedTypeToString

        static java.lang.String parameterizedTypeToString​(DocEnv env,
                                                          com.sun.tools.javac.code.Type.ClassType cl,
                                                          boolean full)
        Deprecated.