Class TypeVariableImpl
java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.AbstractTypeImpl
gw.gosudoc.com.sun.tools.javadoc.main.TypeVariableImpl
- All Implemented Interfaces:
Type,TypeVariable
Deprecated.
Implementation of
TypeVariable, which
represents a type variable.
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
ConstructorsConstructorDescriptionTypeVariableImpl(DocEnv env, com.sun.tools.javac.code.Type.TypeVar type) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the annotations of this program element.Deprecated.Return the ClassDoc of the erasure of this type variable.Deprecated.Return this type as aTypeVariableif it represents a type variable.Type[]bounds()Deprecated.Return the bounds of this type variable.private static com.sun.tools.javac.util.List<com.sun.tools.javac.code.Type>Deprecated.Get the bounds of a type variable as listed in the "extends" clause.owner()Deprecated.Return the class, interface, method, or constructor within which this type variable is declared.toString()Deprecated.Return a string representation of the type.(package private) static StringtypeVarToString(DocEnv env, com.sun.tools.javac.code.Type.TypeVar v, boolean full) Deprecated.Return the string form of a type variable along with any "extends" clause.Methods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.AbstractTypeImpl
asAnnotatedType, asAnnotationTypeDoc, asParameterizedType, asWildcardType, dimension, getElementType, isPrimitive, name, qualifiedName, qualifiedTypeName, simpleTypeName, typeNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gw.gosudoc.com.sun.javadoc.Type
asAnnotatedType, asAnnotationTypeDoc, asParameterizedType, asWildcardType, dimension, getElementType, isPrimitive, qualifiedTypeName, simpleTypeName, typeName
-
Constructor Details
-
TypeVariableImpl
TypeVariableImpl(DocEnv env, com.sun.tools.javac.code.Type.TypeVar type) Deprecated.
-
-
Method Details
-
bounds
Deprecated.Return the bounds of this type variable.- Specified by:
boundsin interfaceTypeVariable- Returns:
- the bounds of this type variable.
-
owner
Deprecated.Return the class, interface, method, or constructor within which this type variable is declared.- Specified by:
ownerin interfaceTypeVariable- Returns:
- the class, interface, method, or constructor within which this type variable is declared.
-
asClassDoc
Deprecated.Return the ClassDoc of the erasure of this type variable.- Specified by:
asClassDocin interfaceType- Overrides:
asClassDocin classAbstractTypeImpl- Returns:
- the
ClassDocof this type, or null if it is a primitive type.
-
asTypeVariable
Deprecated.Description copied from interface:TypeReturn this type as aTypeVariableif it represents a type variable. Array dimensions are ignored.- Specified by:
asTypeVariablein interfaceType- Overrides:
asTypeVariablein classAbstractTypeImpl- Returns:
- a
TypeVariableif the type is a type variable, or null if it is not.
-
toString
Deprecated.Description copied from interface:TypeReturn 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:
toStringin interfaceType- Overrides:
toStringin classAbstractTypeImpl- Returns:
- a string representation of the type.
-
typeVarToString
Deprecated.Return the string form of a type variable along with any "extends" clause. Class names are qualified if "full" is true. -
getBounds
private static com.sun.tools.javac.util.List<com.sun.tools.javac.code.Type> getBounds(com.sun.tools.javac.code.Type.TypeVar v, DocEnv env) Deprecated.Get the bounds of a type variable as listed in the "extends" clause. -
annotations
Deprecated.Get the annotations of this program element. Return an empty array if there are none.- Specified by:
annotationsin interfaceTypeVariable- Returns:
- the annotations of this program element or an empty array if there are none.
-