Class 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.

    • Constructor Detail

      • PrimitiveType

        PrimitiveType​(java.lang.String name)
        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'.

        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 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:
        qualifiedTypeName in interface Type
        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:
        simpleTypeName in interface Type
        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 '[][]'.

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

        Specified by:
        toString in interface Type
        Overrides:
        toString in class java.lang.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.