Class WildcardTypeImpl
java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.AbstractTypeImpl
gw.gosudoc.com.sun.tools.javadoc.main.WildcardTypeImpl
- All Implemented Interfaces:
Type
,WildcardType
Deprecated.
Implementation of
WildcardType
, which
represents a wildcard type.
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
ConstructorsConstructorDescriptionWildcardTypeImpl
(DocEnv env, com.sun.tools.javac.code.Type.WildcardType type) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the ClassDoc of the erasure of this wildcard type.Deprecated.Return this type as aWildcardType
if it represents a wildcard type.Type[]
Deprecated.Return the upper bounds of this wildcard type argument as given by the extends clause.private static com.sun.tools.javac.util.List<com.sun.tools.javac.code.Type>
getExtendsBounds
(com.sun.tools.javac.code.Type.WildcardType wild) Deprecated.private static com.sun.tools.javac.util.List<com.sun.tools.javac.code.Type>
getSuperBounds
(com.sun.tools.javac.code.Type.WildcardType wild) Deprecated.Deprecated.Return qualified name of type excluding any dimension information.Deprecated.Return the simple name of this type excluding any dimension information.Type[]
Deprecated.Return the lower bounds of this wildcard type argument as given by the super clause.toString()
Deprecated.Return a string representation of the type.typeName()
Deprecated.Return unqualified name of type excluding any dimension information.(package private) static String
wildcardTypeToString
(DocEnv env, com.sun.tools.javac.code.Type.WildcardType wildThing, boolean full) Deprecated.Return the string form of a wildcard type ("?") along with any "extends" or "super" clause.Methods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.AbstractTypeImpl
asAnnotatedType, asAnnotationTypeDoc, asParameterizedType, asTypeVariable, dimension, getElementType, isPrimitive, name, qualifiedName
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, asParameterizedType, asTypeVariable, dimension, getElementType, isPrimitive
-
Constructor Details
-
WildcardTypeImpl
WildcardTypeImpl(DocEnv env, com.sun.tools.javac.code.Type.WildcardType type) Deprecated.
-
-
Method Details
-
extendsBounds
Deprecated.Return the upper bounds of this wildcard type argument as given by the extends clause. Return an empty array if no such bounds are explicitly given.- Specified by:
extendsBounds
in interfaceWildcardType
- Returns:
- the extends bounds of this wildcard type argument
-
superBounds
Deprecated.Return the lower bounds of this wildcard type argument as given by the super clause. Return an empty array if no such bounds are explicitly given.- Specified by:
superBounds
in interfaceWildcardType
- Returns:
- the super bounds of this wildcard type argument
-
asClassDoc
Deprecated.Return the ClassDoc of the erasure of this wildcard type.- Specified by:
asClassDoc
in interfaceType
- Overrides:
asClassDoc
in classAbstractTypeImpl
- Returns:
- the
ClassDoc
of this type, or null if it is a primitive type.
-
asWildcardType
Deprecated.Description copied from interface:Type
Return this type as aWildcardType
if it represents a wildcard type.- Specified by:
asWildcardType
in interfaceType
- Overrides:
asWildcardType
in classAbstractTypeImpl
- Returns:
- a
WildcardType
if the type is a wildcard type, or null if it is not.
-
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.
-
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
- Overrides:
qualifiedTypeName
in classAbstractTypeImpl
- Returns:
- qualified name of this type excluding any dimension information.
-
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
- Overrides:
simpleTypeName
in classAbstractTypeImpl
- Returns:
- the simple name of this type excluding any dimension information.
-
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.
-
wildcardTypeToString
static String wildcardTypeToString(DocEnv env, com.sun.tools.javac.code.Type.WildcardType wildThing, boolean full) Deprecated.Return the string form of a wildcard type ("?") along with any "extends" or "super" clause. Delimiting brackets are not included. Class names are qualified if "full" is true. -
getExtendsBounds
private static com.sun.tools.javac.util.List<com.sun.tools.javac.code.Type> getExtendsBounds(com.sun.tools.javac.code.Type.WildcardType wild) Deprecated. -
getSuperBounds
private static com.sun.tools.javac.util.List<com.sun.tools.javac.code.Type> getSuperBounds(com.sun.tools.javac.code.Type.WildcardType wild) Deprecated.
-