GWT 0.0.0

com.google.gwt.core.ext.typeinfo
Enum JPrimitiveType

java.lang.Object
  extended by java.lang.Enum<JPrimitiveType>
      extended by com.google.gwt.core.ext.typeinfo.JPrimitiveType
All Implemented Interfaces:
JType, java.io.Serializable, java.lang.Comparable<JPrimitiveType>

public enum JPrimitiveType
extends java.lang.Enum<JPrimitiveType>
implements JType

Represents a primitive type in a declaration.


Enum Constant Summary
BOOLEAN
           
BYTE
           
CHAR
           
DOUBLE
           
FLOAT
           
INT
           
LONG
           
SHORT
           
VOID
           
 
Method Summary
 JType getErasedType()
           
 java.lang.String getJNISignature()
           
 JType getLeafType()
           
 java.lang.String getParameterizedQualifiedSourceName()
           
 java.lang.String getQualifiedBinaryName()
          A binary type name as specified by the Java Language Spec, Edition 2.
 java.lang.String getQualifiedBoxedSourceName()
           
 java.lang.String getQualifiedSourceName()
          A type name as it would be specified in Java source.
 java.lang.String getSimpleSourceName()
           
 java.lang.String getUninitializedFieldExpression()
           
 JAnnotationType isAnnotation()
          Returns this instance if it is a 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()
           
 JTypeParameter isTypeParameter()
           
 JWildcardType isWildcard()
           
static JPrimitiveType parse(java.lang.String name)
           
 java.lang.String toString()
           
static JPrimitiveType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JPrimitiveType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOOLEAN

public static final JPrimitiveType BOOLEAN

BYTE

public static final JPrimitiveType BYTE

CHAR

public static final JPrimitiveType CHAR

DOUBLE

public static final JPrimitiveType DOUBLE

FLOAT

public static final JPrimitiveType FLOAT

INT

public static final JPrimitiveType INT

LONG

public static final JPrimitiveType LONG

SHORT

public static final JPrimitiveType SHORT

VOID

public static final JPrimitiveType VOID
Method Detail

values

public static JPrimitiveType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JPrimitiveType c : JPrimitiveType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JPrimitiveType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

parse

public static JPrimitiveType parse(java.lang.String name)

getErasedType

public JType getErasedType()
Specified by:
getErasedType in interface JType

getJNISignature

public java.lang.String getJNISignature()
Specified by:
getJNISignature in interface JType

getLeafType

public JType getLeafType()
Specified by:
getLeafType in interface JType

getParameterizedQualifiedSourceName

public java.lang.String getParameterizedQualifiedSourceName()
Specified by:
getParameterizedQualifiedSourceName in interface JType

getQualifiedBinaryName

public java.lang.String getQualifiedBinaryName()
Description copied from interface: JType
A binary type name as specified by the Java Language Spec, Edition 2.

Specified by:
getQualifiedBinaryName in interface JType

getQualifiedBoxedSourceName

public java.lang.String getQualifiedBoxedSourceName()

getQualifiedSourceName

public java.lang.String getQualifiedSourceName()
Description copied from interface: JType
A type name as it would be specified in Java source.

Specified by:
getQualifiedSourceName in interface JType

getSimpleSourceName

public java.lang.String getSimpleSourceName()
Specified by:
getSimpleSourceName in interface JType

getUninitializedFieldExpression

public java.lang.String getUninitializedFieldExpression()

isAnnotation

public JAnnotationType isAnnotation()
Description copied from interface: JType
Returns this instance if it is a annotation or null if it is not.

Specified by:
isAnnotation in interface JType

isArray

public JArrayType isArray()
Specified by:
isArray in interface JType

isClass

public JClassType isClass()
Specified by:
isClass in interface JType

isClassOrInterface

public JClassType isClassOrInterface()
Specified by:
isClassOrInterface in interface JType

isEnum

public JEnumType isEnum()
Description copied from interface: JType
Returns this instance if it is an enumeration or null if it is not.

Specified by:
isEnum in interface JType

isGenericType

public JGenericType isGenericType()
Specified by:
isGenericType in interface JType

isInterface

public JClassType isInterface()
Specified by:
isInterface in interface JType

isParameterized

public JParameterizedType isParameterized()
Specified by:
isParameterized in interface JType

isPrimitive

public JPrimitiveType isPrimitive()
Specified by:
isPrimitive in interface JType

isRawType

public JRawType isRawType()
Specified by:
isRawType in interface JType

isTypeParameter

public JTypeParameter isTypeParameter()
Specified by:
isTypeParameter in interface JType

isWildcard

public JWildcardType isWildcard()
Specified by:
isWildcard in interface JType

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<JPrimitiveType>

GWT 0.0.0