GWT 2.1.1

com.google.gwt.core.ext.typeinfo
Class JType

java.lang.Object
  extended by com.google.gwt.core.ext.typeinfo.JType
Direct Known Subclasses:
JClassType, JPrimitiveType

public abstract class JType
extends java.lang.Object

Abstract superclass for types.


Method Summary
 boolean equals(java.lang.Object obj)
          All types use identity for comparison.
abstract  JType getErasedType()
           
abstract  java.lang.String getJNISignature()
           
 JType getLeafType()
           
 java.lang.String getParameterizedQualifiedSourceName()
           
abstract  java.lang.String getQualifiedBinaryName()
          TODO(scottb): remove if we can resolve param names differently.
abstract  java.lang.String getQualifiedSourceName()
           
abstract  java.lang.String getSimpleSourceName()
           
 int hashCode()
          All types use identity for comparison.
 JAnnotationType isAnnotation()
          Returns this instance if it is a annotation or null if it is not.
abstract  JArrayType isArray()
           
abstract  JClassType isClass()
           
 JClassType isClassOrInterface()
           
abstract  JEnumType isEnum()
          Returns this instance if it is an enumeration or null if it is not.
abstract  JGenericType isGenericType()
           
abstract  JClassType isInterface()
           
abstract  JParameterizedType isParameterized()
           
abstract  JPrimitiveType isPrimitive()
           
abstract  JRawType isRawType()
           
 JTypeParameter isTypeParameter()
           
abstract  JWildcardType isWildcard()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public final boolean equals(java.lang.Object obj)
All types use identity for comparison.

Overrides:
equals in class java.lang.Object

getErasedType

public abstract JType getErasedType()

getJNISignature

public abstract java.lang.String getJNISignature()

getLeafType

public JType getLeafType()

getParameterizedQualifiedSourceName

public java.lang.String getParameterizedQualifiedSourceName()

getQualifiedBinaryName

public abstract java.lang.String getQualifiedBinaryName()
TODO(scottb): remove if we can resolve param names differently.


getQualifiedSourceName

public abstract java.lang.String getQualifiedSourceName()

getSimpleSourceName

public abstract java.lang.String getSimpleSourceName()

hashCode

public final int hashCode()
All types use identity for comparison.

Overrides:
hashCode in class java.lang.Object

isAnnotation

public JAnnotationType isAnnotation()
Returns this instance if it is a annotation or null if it is not.

Returns:
this instance if it is a annotation or null if it is not

isArray

public abstract JArrayType isArray()

isClass

public abstract JClassType isClass()

isClassOrInterface

public JClassType isClassOrInterface()

isEnum

public abstract JEnumType isEnum()
Returns this instance if it is an enumeration or null if it is not.

Returns:
this instance if it is an enumeration or null if it is not

isGenericType

public abstract JGenericType isGenericType()

isInterface

public abstract JClassType isInterface()

isParameterized

public abstract JParameterizedType isParameterized()

isPrimitive

public abstract JPrimitiveType isPrimitive()

isRawType

public abstract JRawType isRawType()

isTypeParameter

public JTypeParameter isTypeParameter()

isWildcard

public abstract JWildcardType isWildcard()

GWT 2.1.1