Class ParameterizedTypeImpl
java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.AbstractTypeImpl
gw.gosudoc.com.sun.tools.javadoc.main.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
-
Field Summary
Fields inherited from class gw.gosudoc.com.sun.tools.javadoc.main.AbstractTypeImpl
env, type
-
Constructor Summary
ConstructorsConstructorDescriptionParameterizedTypeImpl
(DocEnv env, com.sun.tools.javac.code.Type type) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the generic class or interface that declared this type.Deprecated.Return this type as aParameterizedType
if it represents an invocation of a generic class or interface.Deprecated.Return the type that contains this type as a member.Type[]
Deprecated.Return the interface types directly implemented by or extended by this parameterized type.(package private) static String
parameterizedTypeToString
(DocEnv env, com.sun.tools.javac.code.Type.ClassType cl, boolean full) Deprecated.Deprecated.Return the class type that is a direct supertype of this one.toString()
Deprecated.Return a string representation of the type.Type[]
Deprecated.Return the actual type arguments of this type.typeName()
Deprecated.Return unqualified name of type excluding any dimension information.Methods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.AbstractTypeImpl
asAnnotatedType, asAnnotationTypeDoc, asTypeVariable, asWildcardType, dimension, getElementType, isPrimitive, name, qualifiedName, qualifiedTypeName, simpleTypeName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface gw.gosudoc.com.sun.javadoc.Type
asAnnotatedType, asAnnotationTypeDoc, asTypeVariable, asWildcardType, dimension, getElementType, isPrimitive, qualifiedTypeName, simpleTypeName
-
Constructor Details
-
ParameterizedTypeImpl
ParameterizedTypeImpl(DocEnv env, com.sun.tools.javac.code.Type type) Deprecated.
-
-
Method Details
-
asClassDoc
Deprecated.Return the generic class or interface that declared this type.- Specified by:
asClassDoc
in interfaceParameterizedType
- Specified by:
asClassDoc
in interfaceType
- Overrides:
asClassDoc
in classAbstractTypeImpl
- Returns:
- the
ClassDoc
of this type, or null if it is a primitive type.
-
typeArguments
Deprecated.Return the actual type arguments of this type.- Specified by:
typeArguments
in interfaceParameterizedType
- Returns:
- the actual type arguments of this 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 interfaceParameterizedType
- Returns:
- the class type that is a direct supertype of this one.
-
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 interfaceParameterizedType
- Returns:
- the interface types directly implemented by or extended by this parameterized 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 interfaceParameterizedType
- Returns:
- the type that contains this type as a member.
-
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 interfaceType
- Overrides:
typeName
in classAbstractTypeImpl
- Returns:
- unqualified name of type excluding any dimension information.
-
asParameterizedType
Deprecated.Description copied from interface:Type
Return this type as aParameterizedType
if it represents an invocation of a generic class or interface. Array dimensions are ignored.- Specified by:
asParameterizedType
in interfaceType
- Overrides:
asParameterizedType
in classAbstractTypeImpl
- Returns:
- a
ParameterizedType
if the type is an invocation of a generic type, or null if it is not.
-
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 typeList<Integer>
may return "java.util.List<java.lang.Integer>
".- Specified by:
toString
in interfaceType
- Overrides:
toString
in classAbstractTypeImpl
- Returns:
- a string representation of the type.
-
parameterizedTypeToString
static String parameterizedTypeToString(DocEnv env, com.sun.tools.javac.code.Type.ClassType cl, boolean full) Deprecated.
-