Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| GWT 2.4.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.google.gwt.core.ext.typeinfo
Interface JType

All Known Subinterfaces:
  JAnnotationType, JArrayType, JClassType, JEnumType, JGenericType, JParameterizedType, JRawType, JRealClassType, JTypeParameter, JWildcardType

All Known Implementing Classes:
  JPrimitiveType

    public interface JType

Super interface for types.

Method Summary
`JType` | `getErasedType()` Returns this type with no type parameters or type variables.
`java.lang.String` | `getJNISignature()` Returns the turns the field descriptor" for a type as specified by the Java Virtual Machine Specification.
`JType` | `getLeafType()` For array types, recursively looks for the element type that is not an array.
`java.lang.String` | `getParameterizedQualifiedSourceName()`
`java.lang.String` | `getQualifiedBinaryName()` A binary type name as specified by the Java Language Spec, ThirdEdition.
`java.lang.String` | `getQualifiedSourceName()` Returns a type name as it would be specified in Java source, with the package name included.
`java.lang.String` | `getSimpleSourceName()` Returns the name of this class without the package name or enclosing class name.
`JAnnotationType` | `isAnnotation()` Returns this instance as a `JAnnotationType` if it is an annotation or `null` if it is not.
`JArrayType` | `isArray()`
`JClassType` | `isClass()`
`JClassType` | `isClassOrInterface()`
`JEnumType` | `isEnum()` Returns this instance if it is an enumeration or `null` if it is not.
`JGenericType` | `isGenericType()`
`JClassType` | `isInterface()`
`JParameterizedType` | `isParameterized()`
`JPrimitiveType` | `isPrimitive()`
`JRawType` | `isRawType()` Returns the raw type if this is a `JRawType`, otherwise returns `null`.
`JTypeParameter` | `isTypeParameter()`
`JWildcardType` | `isWildcard()`

Method Detail

### getErasedType

    JType getErasedType()

  Returns this type with no type parameters or type variables. See the JLS Third Edition section on Type Erasure.

### getJNISignature

    java.lang.String getJNISignature()

  Returns the turns the field descriptor" for a type as specified by the Java Virtual Machine Specification. Examples:
  - boolean = `Z`
  - byte[] = `[B`
  - java.lang.String = `Ljava/lang/String;`

### getLeafType

    JType getLeafType()

  For array types, recursively looks for the element type that is not an array. Otherwise, returns this type.

### getParameterizedQualifiedSourceName

    java.lang.String getParameterizedQualifiedSourceName()

### getQualifiedBinaryName

    java.lang.String getQualifiedBinaryName()

  A binary type name as specified by the Java Language Spec, ThirdEdition.

### getQualifiedSourceName

    java.lang.String getQualifiedSourceName()

  Returns a type name as it would be specified in Java source, with the package name included.

### getSimpleSourceName

    java.lang.String getSimpleSourceName()

  Returns the name of this class without the package name or enclosing class name.

### isAnnotation

    JAnnotationType isAnnotation()

  Returns this instance as a `JAnnotationType` if it is an annotation or `null` if it is not.

### isArray

    JArrayType isArray()

### isClass

    JClassType isClass()

### isClassOrInterface

    JClassType isClassOrInterface()

### isEnum

    JEnumType isEnum()

  Returns this instance if it is an enumeration or `null` if it is not.

### isGenericType

    JGenericType isGenericType()

### isInterface

    JClassType isInterface()

### isParameterized

    JParameterizedType isParameterized()

### isPrimitive

    JPrimitiveType isPrimitive()

### isRawType

    JRawType isRawType()

  Returns the raw type if this is a `JRawType`, otherwise returns `null`.

### isTypeParameter

    JTypeParameter isTypeParameter()

### isWildcard

    JWildcardType isWildcard()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| GWT 2.4.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD