Class AbstractTypeImpl
java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.AbstractTypeImpl
- All Implemented Interfaces:
Type
- Direct Known Subclasses:
AnnotatedTypeImpl,ParameterizedTypeImpl,TypeVariableImpl,WildcardTypeImpl
Deprecated.
Abstract implementation of
Type, with useful
defaults for the methods in Type (and a couple from
ProgramElementDoc).
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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTypeImpl(DocEnv env, com.sun.tools.javac.code.Type type) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns this type as aAnnotatedTypeif it represents an annotated type.Deprecated.Return this type as anAnnotationTypeDocif it represents an annotation type.Deprecated.Return this type as aClassDocif it represents a class or interface.Deprecated.Return this type as aParameterizedTypeif it represents an invocation of a generic class or interface.Deprecated.Return this type as aTypeVariableif it represents a type variable.Deprecated.Return this type as aWildcardTypeif it represents a wildcard type.Deprecated.Return the type's dimension information, as a string.Deprecated.If this type is an array type, return the element type of the array.booleanDeprecated.Return true if this type represents a primitive type.name()Deprecated.Deprecated.Deprecated.Return qualified name of type excluding any dimension information.Deprecated.Return the simple name of this type excluding any dimension information.toString()Deprecated.Return a string representation of the type.typeName()Deprecated.Return unqualified name of type excluding any dimension information.
-
Field Details
-
env
Deprecated. -
type
protected final com.sun.tools.javac.code.Type typeDeprecated.
-
-
Constructor Details
-
AbstractTypeImpl
Deprecated.
-
-
Method Details
-
typeName
Deprecated.Description copied from interface:TypeReturn unqualified name of type excluding any dimension information.For example, a two dimensional array of String returns "
String". -
qualifiedTypeName
Deprecated.Description copied from interface:TypeReturn qualified name of type excluding any dimension information.For example, a two dimensional array of String returns "
java.lang.String".- Specified by:
qualifiedTypeNamein interfaceType- Returns:
- qualified name of this type excluding any dimension information.
-
getElementType
Deprecated.Description copied from interface:TypeIf this type is an array type, return the element type of the array. Otherwise, return null.- Specified by:
getElementTypein interfaceType- Returns:
- a
Typerepresenting the element type or null.
-
simpleTypeName
Deprecated.Description copied from interface:TypeReturn 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.Innerreturns "Inner".- Specified by:
simpleTypeNamein interfaceType- Returns:
- the simple name of this type excluding any dimension information.
-
name
Deprecated. -
qualifiedName
Deprecated. -
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>". -
dimension
Deprecated.Description copied from interface:TypeReturn 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:TypeReturn true if this type represents a primitive type.- Specified by:
isPrimitivein interfaceType- Returns:
- true if this type represents a primitive type.
-
asClassDoc
Deprecated.Description copied from interface:TypeReturn this type as aClassDocif it represents a class or interface. Array dimensions are ignored. If this type is aParameterizedType,TypeVariable, orWildcardType, return theClassDocof the type's erasure. If this is anAnnotationTypeDoc, return this as aClassDoc(but seeType.asAnnotationTypeDoc()). If this is a primitive type, return null.- Specified by:
asClassDocin interfaceType- 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- Returns:
- a
TypeVariableif the type is a type variable, or null if it is not.
-
asWildcardType
Deprecated.Description copied from interface:TypeReturn this type as aWildcardTypeif it represents a wildcard type.- Specified by:
asWildcardTypein interfaceType- Returns:
- a
WildcardTypeif the type is a wildcard type, or null if it is not.
-
asParameterizedType
Deprecated.Description copied from interface:TypeReturn this type as aParameterizedTypeif it represents an invocation of a generic class or interface. Array dimensions are ignored.- Specified by:
asParameterizedTypein interfaceType- Returns:
- a
ParameterizedTypeif the type is an invocation of a generic type, or null if it is not.
-
asAnnotationTypeDoc
Deprecated.Description copied from interface:TypeReturn this type as anAnnotationTypeDocif it represents an annotation type. Array dimensions are ignored.- Specified by:
asAnnotationTypeDocin interfaceType- Returns:
- an
AnnotationTypeDocif the type is an annotation type, or null if it is not.
-
asAnnotatedType
Deprecated.Description copied from interface:TypeReturns this type as aAnnotatedTypeif it represents an annotated type.- Specified by:
asAnnotatedTypein interfaceType- Returns:
- a
AnnotatedTypeif the type if an annotated type, or null if it is not
-