Class PrimitiveType
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.javadoc.main.PrimitiveType
-
- All Implemented Interfaces:
Type
@Deprecated class PrimitiveType extends java.lang.Object implements Type
Deprecated.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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static PrimitiveTypebooleanTypeDeprecated.(package private) static PrimitiveTypebyteTypeDeprecated.(package private) static PrimitiveTypecharTypeDeprecated.(package private) static PrimitiveTypedoubleTypeDeprecated.(package private) static PrimitiveTypeerrorTypeDeprecated.(package private) static PrimitiveTypefloatTypeDeprecated.(package private) static PrimitiveTypeintTypeDeprecated.(package private) static PrimitiveTypelongTypeDeprecated.private java.lang.StringnameDeprecated.(package private) static PrimitiveTypeshortTypeDeprecated.(package private) static PrimitiveTypevoidTypeDeprecated.
-
Constructor Summary
Constructors Constructor Description PrimitiveType(java.lang.String name)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AnnotatedTypeasAnnotatedType()Deprecated.Return null, as this is not an annotated type.AnnotationTypeDocasAnnotationTypeDoc()Deprecated.Return null, as this is not an annotation type.ClassDocasClassDoc()Deprecated.Return this type as a class.ParameterizedTypeasParameterizedType()Deprecated.Return null, as this is not an instantiation.TypeVariableasTypeVariable()Deprecated.Return null, as this is not a type variable.WildcardTypeasWildcardType()Deprecated.Return null, as this is not a wildcard type.java.lang.Stringdimension()Deprecated.Return the type's dimension information, as a string.TypegetElementType()Deprecated.If this type is an array type, return the element type of the array.booleanisPrimitive()Deprecated.Return true if this is 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.java.lang.StringtoString()Deprecated.Returns a string representation of the type.java.lang.StringtypeName()Deprecated.Return unqualified name of type excluding any dimension information.
-
-
-
Field Detail
-
name
private final java.lang.String name
Deprecated.
-
voidType
static final PrimitiveType voidType
Deprecated.
-
booleanType
static final PrimitiveType booleanType
Deprecated.
-
byteType
static final PrimitiveType byteType
Deprecated.
-
charType
static final PrimitiveType charType
Deprecated.
-
shortType
static final PrimitiveType shortType
Deprecated.
-
intType
static final PrimitiveType intType
Deprecated.
-
longType
static final PrimitiveType longType
Deprecated.
-
floatType
static final PrimitiveType floatType
Deprecated.
-
doubleType
static final PrimitiveType doubleType
Deprecated.
-
errorType
static final PrimitiveType errorType
Deprecated.
-
-
Method Detail
-
typeName
public java.lang.String typeName()
Deprecated.Return unqualified name of type excluding any dimension information.For example, a two dimensional array of String returns 'String'.
-
getElementType
public Type 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.
-
qualifiedTypeName
public java.lang.String qualifiedTypeName()
Deprecated.Return 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.
-
simpleTypeName
public java.lang.String simpleTypeName()
Deprecated.Return the simple name of this type.- Specified by:
simpleTypeNamein interfaceType- Returns:
- the simple name of this type excluding any dimension information.
-
dimension
public java.lang.String dimension()
Deprecated.Return the type's dimension information, as a string.For example, a two dimensional array of String returns '[][]'.
-
asClassDoc
public ClassDoc asClassDoc()
Deprecated.Return this type as a class. Array dimensions are ignored.- Specified by:
asClassDocin interfaceType- Returns:
- a ClassDocImpl if the type is a Class. Return null if it is a primitive type..
-
asAnnotationTypeDoc
public AnnotationTypeDoc asAnnotationTypeDoc()
Deprecated.Return null, as this is not an annotation type.- Specified by:
asAnnotationTypeDocin interfaceType- Returns:
- an
AnnotationTypeDocif the type is an annotation type, or null if it is not.
-
asParameterizedType
public ParameterizedType asParameterizedType()
Deprecated.Return null, as this is not an instantiation.- Specified by:
asParameterizedTypein interfaceType- Returns:
- a
ParameterizedTypeif the type is an invocation of a generic type, or null if it is not.
-
asTypeVariable
public TypeVariable asTypeVariable()
Deprecated.Return null, as this is not a type variable.- Specified by:
asTypeVariablein interfaceType- Returns:
- a
TypeVariableif the type is a type variable, or null if it is not.
-
asWildcardType
public WildcardType asWildcardType()
Deprecated.Return null, as this is not a wildcard type.- Specified by:
asWildcardTypein interfaceType- Returns:
- a
WildcardTypeif the type is a wildcard type, or null if it is not.
-
asAnnotatedType
public AnnotatedType asAnnotatedType()
Deprecated.Return null, as this is not an annotated type.- Specified by:
asAnnotatedTypein interfaceType- Returns:
- a
AnnotatedTypeif the type if an annotated type, or null if it is not
-
toString
public java.lang.String toString()
Deprecated.Returns a string representation of the type. Return name of type including any dimension information.For example, a two dimensional array of String returns
String[][].
-
isPrimitive
public boolean isPrimitive()
Deprecated.Return true if this is a primitive type.- Specified by:
isPrimitivein interfaceType- Returns:
- true if this type represents a primitive type.
-
-