Class ParameterizedTypeImpl
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.javadoc.main.ParameterizedTypeImpl
-
- All Implemented Interfaces:
ParameterizedType
,Type
@Deprecated public class ParameterizedTypeImpl extends Object implements ParameterizedType
Deprecated.Implementation ofParameterizedType
, 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
- Author:
- Scott Seligman
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AnnotatedType
asAnnotatedType()
Deprecated.Returns this type as aAnnotatedType
if it represents an annotated type.AnnotationTypeDoc
asAnnotationTypeDoc()
Deprecated.Return this type as anAnnotationTypeDoc
if it represents an annotation type.ClassDoc
asClassDoc()
Deprecated.Return the generic class or interface that declared this type.ParameterizedType
asParameterizedType()
Deprecated.Return this type as aParameterizedType
if it represents an invocation of a generic class or interface.TypeVariable
asTypeVariable()
Deprecated.Return this type as aTypeVariable
if it represents a type variable.WildcardType
asWildcardType()
Deprecated.Return this type as aWildcardType
if it represents a wildcard type.Type
containingType()
Deprecated.Return the type that contains this type as a member.String
dimension()
Deprecated.Return the type's dimension information, as a string.Type
getElementType()
Deprecated.If this type is an array type, return the element type of the array.Type[]
interfaceTypes()
Deprecated.Return the interface types directly implemented by or extended by this parameterized type.boolean
isPrimitive()
Deprecated.Return true if this type represents a primitive type.String
name()
Deprecated.String
qualifiedName()
Deprecated.String
qualifiedTypeName()
Deprecated.Return qualified name of type excluding any dimension information.String
simpleTypeName()
Deprecated.Return the simple name of this type excluding any dimension information.Type
superclassType()
Deprecated.Return the class type that is a direct supertype of this one.String
toString()
Deprecated.Return a string representation of the type.Type[]
typeArguments()
Deprecated.Return the actual type arguments of this type.String
typeName()
Deprecated.Return unqualified name of type excluding any dimension information.-
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
-
-
-
-
Field Detail
-
env
protected final DocEnv env
Deprecated.
-
type
protected final com.sun.tools.javac.code.Type type
Deprecated.
-
-
Method Detail
-
asClassDoc
public ClassDoc asClassDoc()
Deprecated.Return the generic class or interface that declared this type.- Specified by:
asClassDoc
in interfaceParameterizedType
- Specified by:
asClassDoc
in interfaceType
- Returns:
- the
ClassDoc
of this type, or null if it is a primitive type.
-
typeArguments
public 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
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 interfaceParameterizedType
- 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 interfaceParameterizedType
- 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 interfaceParameterizedType
- Returns:
- the type that contains this type as a member.
-
typeName
public 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
".
-
asParameterizedType
public ParameterizedType 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
- Returns:
- a
ParameterizedType
if the type is an invocation of a generic type, or null if it is not.
-
toString
public 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 typeList<Integer>
may return "java.util.List<java.lang.Integer>
".
-
qualifiedTypeName
public String qualifiedTypeName()
Deprecated.Description copied from interface:Type
Return qualified name of type excluding any dimension information.For example, a two dimensional array of String returns "
java.lang.String
".- Specified by:
qualifiedTypeName
in interfaceType
- Returns:
- qualified name of this type excluding any dimension information.
-
getElementType
public Type getElementType()
Deprecated.Description copied from interface:Type
If this type is an array type, return the element type of the array. Otherwise, return null.- Specified by:
getElementType
in interfaceType
- Returns:
- a
Type
representing the element type or null.
-
simpleTypeName
public String simpleTypeName()
Deprecated.Description copied from interface:Type
Return the simple name of this type excluding any dimension information. This is the unqualified name of the type, except that for nested types only the identifier of the innermost type is included.For example, the class
Outer.Inner
returns "Inner
".- Specified by:
simpleTypeName
in interfaceType
- Returns:
- the simple name of this type excluding any dimension information.
-
name
public String name()
Deprecated.
-
qualifiedName
public String qualifiedName()
Deprecated.
-
dimension
public String dimension()
Deprecated.Description copied from interface:Type
Return the type's dimension information, as a string.For example, a two dimensional array of String returns "
[][]
".
-
isPrimitive
public boolean isPrimitive()
Deprecated.Description copied from interface:Type
Return true if this type represents a primitive type.- Specified by:
isPrimitive
in interfaceType
- Returns:
- true if this type represents a primitive type.
-
asTypeVariable
public TypeVariable asTypeVariable()
Deprecated.Description copied from interface:Type
Return this type as aTypeVariable
if it represents a type variable. Array dimensions are ignored.- Specified by:
asTypeVariable
in interfaceType
- Returns:
- a
TypeVariable
if the type is a type variable, or null if it is not.
-
asWildcardType
public WildcardType asWildcardType()
Deprecated.Description copied from interface:Type
Return this type as aWildcardType
if it represents a wildcard type.- Specified by:
asWildcardType
in interfaceType
- Returns:
- a
WildcardType
if the type is a wildcard type, or null if it is not.
-
asAnnotationTypeDoc
public AnnotationTypeDoc asAnnotationTypeDoc()
Deprecated.Description copied from interface:Type
Return this type as anAnnotationTypeDoc
if it represents an annotation type. Array dimensions are ignored.- Specified by:
asAnnotationTypeDoc
in interfaceType
- Returns:
- an
AnnotationTypeDoc
if the type is an annotation type, or null if it is not.
-
asAnnotatedType
public AnnotatedType asAnnotatedType()
Deprecated.Description copied from interface:Type
Returns this type as aAnnotatedType
if it represents an annotated type.- Specified by:
asAnnotatedType
in interfaceType
- Returns:
- a
AnnotatedType
if the type if an annotated type, or null if it is not
-
-