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 public class TypeVariableImpl extends AbstractTypeImpl implements TypeVariable
Deprecated.Implementation ofTypeVariable, 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
Constructors Constructor Description TypeVariableImpl(DocEnv env, com.sun.tools.javac.code.Type.TypeVar type)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AnnotationDesc[]annotations()Deprecated.Get the annotations of this program element.ClassDocasClassDoc()Deprecated.Return the ClassDoc of the erasure of this type variable.TypeVariableasTypeVariable()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>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.ProgramElementDocowner()Deprecated.Return the class, interface, method, or constructor within which this type variable is declared.java.lang.StringtoString()Deprecated.Return a string representation of the type.(package private) static java.lang.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, typeName
-
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, asWildcardType, dimension, getElementType, isPrimitive, qualifiedTypeName, simpleTypeName, typeName
-
-
-
-
Constructor Detail
-
TypeVariableImpl
TypeVariableImpl(DocEnv env, com.sun.tools.javac.code.Type.TypeVar type)
Deprecated.
-
-
Method Detail
-
bounds
public Type[] bounds()
Deprecated.Return the bounds of this type variable.- Specified by:
boundsin interfaceTypeVariable- Returns:
- the bounds of this type variable.
-
owner
public ProgramElementDoc 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
public ClassDoc 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
public TypeVariable 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
public java.lang.String 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
static java.lang.String typeVarToString(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. 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
public AnnotationDesc[] 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.
-
-