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.
Implementation of
AnnotatedType
, 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
ConstructorsConstructorDescriptionAnnotatedTypeImpl
(DocEnv env, com.sun.tools.javac.code.Type type) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the annotations of this program element.Deprecated.Returns this type as aAnnotatedType
if it represents an annotated type.Deprecated.Return this type as aClassDoc
if it represents a class or interface.Deprecated.Return this type as aParameterizedType
if it represents an invocation of a generic class or interface.Deprecated.Return this type as aTypeVariable
if it represents a type variable.Deprecated.Return this type as aWildcardType
if it represents a wildcard type.Deprecated.Return the type's dimension information, as a string.boolean
Deprecated.Return true if this type represents a primitive type.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.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 Details
-
AnnotatedTypeImpl
AnnotatedTypeImpl(DocEnv env, com.sun.tools.javac.code.Type type) Deprecated.
-
-
Method Details
-
annotations
Deprecated.Get the annotations of this program element. Return an empty array if there are none.- Specified by:
annotations
in interfaceAnnotatedType
- Returns:
- the annotations associated with this type
-
underlyingType
Deprecated.Description copied from interface:AnnotatedType
Returns the underlying type.- Specified by:
underlyingType
in interfaceAnnotatedType
- Returns:
- the underlying type
-
asAnnotatedType
Deprecated.Description copied from interface:Type
Returns this type as aAnnotatedType
if it represents an annotated type.- Specified by:
asAnnotatedType
in interfaceType
- Overrides:
asAnnotatedType
in classAbstractTypeImpl
- Returns:
- a
AnnotatedType
if the type if an annotated type, or null if it is not
-
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.
-
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.
-
dimension
Deprecated.Description copied from interface:Type
Return the type's dimension information, as a string.For example, a two dimensional array of String returns "
[][]
".- Specified by:
dimension
in interfaceType
- Overrides:
dimension
in classAbstractTypeImpl
- Returns:
- the type's dimension information as a string.
-
isPrimitive
public boolean isPrimitive()Deprecated.Description copied from interface:Type
Return true if this type represents a primitive type.- Specified by:
isPrimitive
in interfaceType
- Overrides:
isPrimitive
in classAbstractTypeImpl
- Returns:
- true if this type represents a primitive type.
-
asClassDoc
Deprecated.Description copied from interface:Type
Return this type as aClassDoc
if it represents a class or interface. Array dimensions are ignored. If this type is aParameterizedType
,TypeVariable
, orWildcardType
, return theClassDoc
of 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:
asClassDoc
in interfaceType
- Overrides:
asClassDoc
in classAbstractTypeImpl
- Returns:
- the
ClassDoc
of this type, or null if it is a primitive type.
-
asTypeVariable
Deprecated.Description copied from interface:Type
Return this type as aTypeVariable
if it represents a type variable. Array dimensions are ignored.- Specified by:
asTypeVariable
in interfaceType
- Overrides:
asTypeVariable
in classAbstractTypeImpl
- Returns:
- a
TypeVariable
if the type is a type variable, or null if it is not.
-
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.
-
asParameterizedType
Deprecated.Description copied from interface:Type
Return this type as aParameterizedType
if it represents an invocation of a generic class or interface. Array dimensions are ignored.- Specified by:
asParameterizedType
in interfaceType
- Overrides:
asParameterizedType
in classAbstractTypeImpl
- Returns:
- a
ParameterizedType
if the type is an invocation of a generic type, or null if it is not.
-