IT. Expert System.

Java Standard Edition (SE)

Type


com.sun.javadoc

Interface Type

    • Method Detail

      • typeName

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

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

      • qualifiedTypeName

        String qualifiedTypeName()
        Return qualified name of type excluding any dimension information.

        For example, a two dimensional array of String returns "java.lang.String".

      • simpleTypeName

        String simpleTypeName()
        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".

        Since:
        1.5
      • dimension

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

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

      • toString

        String toString()
        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 type List<Integer> may return "java.util.List<java.lang.Integer>".

        Overrides:
        toString in class Object
        Returns:
        a string representation of the type.
      • isPrimitive

        boolean isPrimitive()
        Return true if this type represents a primitive type.
        Returns:
        true if this type represents a primitive type.
        Since:
        1.5
      • asClassDoc

        ClassDoc asClassDoc()
        Return this type as a ClassDoc if it represents a class or interface. Array dimensions are ignored. If this type is a ParameterizedType, TypeVariable, or WildcardType, return the ClassDoc of the type's erasure. If this is an AnnotationTypeDoc, return this as a ClassDoc (but see asAnnotationTypeDoc()). If this is a primitive type, return null.
        Returns:
        the ClassDoc of this type, or null if it is a primitive type.
      • asParameterizedType

        ParameterizedType asParameterizedType()
        Return this type as a ParameterizedType if it represents an invocation of a generic class or interface. Array dimensions are ignored.
        Returns:
        a ParameterizedType if the type is an invocation of a generic type, or null if it is not.
        Since:
        1.5
      • asTypeVariable

        TypeVariable asTypeVariable()
        Return this type as a TypeVariable if it represents a type variable. Array dimensions are ignored.
        Returns:
        a TypeVariable if the type is a type variable, or null if it is not.
        Since:
        1.5
      • asWildcardType

        WildcardType asWildcardType()
        Return this type as a WildcardType if it represents a wildcard type.
        Returns:
        a WildcardType if the type is a wildcard type, or null if it is not.
        Since:
        1.5
      • asAnnotatedType

        AnnotatedType asAnnotatedType()
        Returns this type as a AnnotatedType if it represents an annotated type.
        Returns:
        a AnnotatedType if the type if an annotated type, or null if it is not
        Since:
        1.8
      • asAnnotationTypeDoc

        AnnotationTypeDoc asAnnotationTypeDoc()
        Return this type as an AnnotationTypeDoc if it represents an annotation type. Array dimensions are ignored.
        Returns:
        an AnnotationTypeDoc if the type is an annotation type, or null if it is not.
        Since:
        1.5
      • getElementType

        Type getElementType()
        If this type is an array type, return the element type of the array. Otherwise, return null.
        Returns:
        a Type representing the element type or null.
        Since:
        1.8


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 228 / 158693970. Delta: 0.03885 с