Class PrimitiveType
java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.PrimitiveType
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescription(package private) static final PrimitiveType
Deprecated.(package private) static final PrimitiveType
Deprecated.(package private) static final PrimitiveType
Deprecated.(package private) static final PrimitiveType
Deprecated.(package private) static final PrimitiveType
Deprecated.(package private) static final PrimitiveType
Deprecated.(package private) static final PrimitiveType
Deprecated.(package private) static final PrimitiveType
Deprecated.private final String
Deprecated.(package private) static final PrimitiveType
Deprecated.(package private) static final PrimitiveType
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return null, as this is not an annotated type.Deprecated.Return null, as this is not an annotation type.Deprecated.Return this type as a class.Deprecated.Return null, as this is not an instantiation.Deprecated.Return null, as this is not a type variable.Deprecated.Return null, as this is not 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.boolean
Deprecated.Return true if this is a primitive type.Deprecated.Return qualified name of type excluding any dimension information.Deprecated.Return the simple name of this type.toString()
Deprecated.Returns a string representation of the type.typeName()
Deprecated.Return unqualified name of type excluding any dimension information.
-
Field Details
-
name
Deprecated. -
voidType
Deprecated. -
booleanType
Deprecated. -
byteType
Deprecated. -
charType
Deprecated. -
shortType
Deprecated. -
intType
Deprecated. -
longType
Deprecated. -
floatType
Deprecated. -
doubleType
Deprecated. -
errorType
Deprecated.
-
-
Constructor Details
-
PrimitiveType
PrimitiveType(String name) Deprecated.
-
-
Method Details
-
typeName
Deprecated.Return unqualified name of type excluding any dimension information.For example, a two dimensional array of String returns 'String'.
-
getElementType
Deprecated.Description copied from interface:Type
If this type is an array type, return the element type of the array. Otherwise, return null.- Specified by:
getElementType
in interfaceType
- Returns:
- a
Type
representing the element type or null.
-
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:
qualifiedTypeName
in interfaceType
- Returns:
- qualified name of this type excluding any dimension information.
-
simpleTypeName
Deprecated.Return the simple name of this type.- Specified by:
simpleTypeName
in interfaceType
- Returns:
- the simple name of this type excluding any dimension information.
-
dimension
Deprecated.Return the type's dimension information, as a string.For example, a two dimensional array of String returns '[][]'.
-
asClassDoc
Deprecated.Return this type as a class. Array dimensions are ignored.- Specified by:
asClassDoc
in interfaceType
- Returns:
- a ClassDocImpl if the type is a Class. Return null if it is a primitive type..
-
asAnnotationTypeDoc
Deprecated.Return null, as this is not an annotation type.- Specified by:
asAnnotationTypeDoc
in interfaceType
- Returns:
- an
AnnotationTypeDoc
if the type is an annotation type, or null if it is not.
-
asParameterizedType
Deprecated.Return null, as this is not an instantiation.- Specified by:
asParameterizedType
in interfaceType
- Returns:
- a
ParameterizedType
if the type is an invocation of a generic type, or null if it is not.
-
asTypeVariable
Deprecated.Return null, as this is not a type variable.- Specified by:
asTypeVariable
in interfaceType
- Returns:
- a
TypeVariable
if the type is a type variable, or null if it is not.
-
asWildcardType
Deprecated.Return null, as this is not a wildcard type.- Specified by:
asWildcardType
in interfaceType
- Returns:
- a
WildcardType
if the type is a wildcard type, or null if it is not.
-
asAnnotatedType
Deprecated.Return null, as this is not an annotated type.- Specified by:
asAnnotatedType
in interfaceType
- Returns:
- a
AnnotatedType
if the type if an annotated type, or null if it is not
-
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:
isPrimitive
in interfaceType
- Returns:
- true if this type represents a primitive type.
-