Class PrimitiveType

java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.PrimitiveType
All Implemented Interfaces:
Type

@Deprecated class PrimitiveType extends 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 Details

  • Constructor Details

    • PrimitiveType

      PrimitiveType(String name)
      Deprecated.
  • Method Details

    • typeName

      public String typeName()
      Deprecated.
      Return unqualified name of type excluding any dimension information.

      For example, a two dimensional array of String returns 'String'.

      Specified by:
      typeName in interface Type
      Returns:
      unqualified name of type excluding any dimension information.
    • getElementType

      public Type 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 interface Type
      Returns:
      a Type representing the element type or null.
    • qualifiedTypeName

      public 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:
      qualifiedTypeName in interface Type
      Returns:
      qualified name of this type excluding any dimension information.
    • simpleTypeName

      public String simpleTypeName()
      Deprecated.
      Return the simple name of this type.
      Specified by:
      simpleTypeName in interface Type
      Returns:
      the simple name of this type excluding any dimension information.
    • dimension

      public String dimension()
      Deprecated.
      Return the type's dimension information, as a string.

      For example, a two dimensional array of String returns '[][]'.

      Specified by:
      dimension in interface Type
      Returns:
      the type's dimension information as a string.
    • asClassDoc

      public ClassDoc asClassDoc()
      Deprecated.
      Return this type as a class. Array dimensions are ignored.
      Specified by:
      asClassDoc in interface Type
      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:
      asAnnotationTypeDoc in interface Type
      Returns:
      an AnnotationTypeDoc if 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:
      asParameterizedType in interface Type
      Returns:
      a ParameterizedType if 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:
      asTypeVariable in interface Type
      Returns:
      a TypeVariable if 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:
      asWildcardType in interface Type
      Returns:
      a WildcardType if 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:
      asAnnotatedType in interface Type
      Returns:
      a AnnotatedType if the type if an annotated type, or null if it is not
    • toString

      public 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[][].

      Specified by:
      toString in interface Type
      Overrides:
      toString in class Object
      Returns:
      name of type including any dimension information.
    • isPrimitive

      public boolean isPrimitive()
      Deprecated.
      Return true if this is a primitive type.
      Specified by:
      isPrimitive in interface Type
      Returns:
      true if this type represents a primitive type.