Class AnnotatedTypeImpl
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.javadoc.main.AbstractTypeImpl
-
- gw.gosudoc.com.sun.tools.javadoc.main.AnnotatedTypeImpl
-
- All Implemented Interfaces:
AnnotatedType,Type
@Deprecated public class AnnotatedTypeImpl extends AbstractTypeImpl implements AnnotatedType
Deprecated.Implementation ofAnnotatedType, which represents an annotated type.- Since:
- 1.8
-
-
Field Summary
-
Fields inherited from class gw.gosudoc.com.sun.tools.javadoc.main.AbstractTypeImpl
env, type
-
-
Constructor Summary
Constructors Constructor Description AnnotatedTypeImpl(DocEnv env, com.sun.tools.javac.code.Type type)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AnnotationDesc[]annotations()Deprecated.Get the annotations of this program element.AnnotatedTypeasAnnotatedType()Deprecated.Returns this type as aAnnotatedTypeif it represents an annotated type.ClassDocasClassDoc()Deprecated.Return this type as aClassDocif it represents a class or interface.ParameterizedTypeasParameterizedType()Deprecated.Return this type as aParameterizedTypeif it represents an invocation of a generic class or interface.TypeVariableasTypeVariable()Deprecated.Return this type as aTypeVariableif it represents a type variable.WildcardTypeasWildcardType()Deprecated.Return this type as aWildcardTypeif it represents a wildcard type.java.lang.Stringdimension()Deprecated.Return the type's dimension information, as a string.booleanisPrimitive()Deprecated.Return true if this type represents a primitive type.java.lang.StringqualifiedTypeName()Deprecated.Return qualified name of type excluding any dimension information.java.lang.StringsimpleTypeName()Deprecated.Return the simple name of this type excluding any dimension information.java.lang.StringtoString()Deprecated.Return a string representation of the type.java.lang.StringtypeName()Deprecated.Return unqualified name of type excluding any dimension information.TypeunderlyingType()Deprecated.Returns the underlying type.-
Methods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.AbstractTypeImpl
asAnnotationTypeDoc, getElementType, 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
asAnnotationTypeDoc, getElementType
-
-
-
-
Constructor Detail
-
AnnotatedTypeImpl
AnnotatedTypeImpl(DocEnv env, com.sun.tools.javac.code.Type type)
Deprecated.
-
-
Method Detail
-
annotations
public AnnotationDesc[] annotations()
Deprecated.Get the annotations of this program element. Return an empty array if there are none.- Specified by:
annotationsin interfaceAnnotatedType- Returns:
- the annotations associated with this type
-
underlyingType
public Type underlyingType()
Deprecated.Description copied from interface:AnnotatedTypeReturns the underlying type.- Specified by:
underlyingTypein interfaceAnnotatedType- Returns:
- the underlying type
-
asAnnotatedType
public AnnotatedType asAnnotatedType()
Deprecated.Description copied from interface:TypeReturns this type as aAnnotatedTypeif it represents an annotated type.- Specified by:
asAnnotatedTypein interfaceType- Overrides:
asAnnotatedTypein classAbstractTypeImpl- Returns:
- a
AnnotatedTypeif the type if an annotated type, 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.
-
typeName
public java.lang.String 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".- Specified by:
typeNamein interfaceType- Overrides:
typeNamein classAbstractTypeImpl- Returns:
- unqualified name of type excluding any dimension information.
-
qualifiedTypeName
public java.lang.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- Overrides:
qualifiedTypeNamein classAbstractTypeImpl- Returns:
- qualified name of this type excluding any dimension information.
-
simpleTypeName
public java.lang.String 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- Overrides:
simpleTypeNamein classAbstractTypeImpl- Returns:
- the simple name of this type excluding any dimension information.
-
dimension
public java.lang.String dimension()
Deprecated.Description copied from interface:TypeReturn the type's dimension information, as a string.For example, a two dimensional array of String returns "
[][]".- Specified by:
dimensionin interfaceType- Overrides:
dimensionin classAbstractTypeImpl- Returns:
- the type's dimension information as a string.
-
isPrimitive
public boolean isPrimitive()
Deprecated.Description copied from interface:TypeReturn true if this type represents a primitive type.- Specified by:
isPrimitivein interfaceType- Overrides:
isPrimitivein classAbstractTypeImpl- Returns:
- true if this type represents a primitive type.
-
asClassDoc
public ClassDoc 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- 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.
-
asWildcardType
public WildcardType asWildcardType()
Deprecated.Description copied from interface:TypeReturn this type as aWildcardTypeif it represents a wildcard type.- Specified by:
asWildcardTypein interfaceType- Overrides:
asWildcardTypein classAbstractTypeImpl- Returns:
- a
WildcardTypeif the type is a wildcard type, or null if it is not.
-
asParameterizedType
public ParameterizedType 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- Overrides:
asParameterizedTypein classAbstractTypeImpl- Returns:
- a
ParameterizedTypeif the type is an invocation of a generic type, or null if it is not.
-
-