|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<JPrimitiveType> com.google.gwt.core.ext.typeinfo.JPrimitiveType
public enum JPrimitiveType
Represents a primitive type in a declaration.
Enum Constant Summary | |
---|---|
BOOLEAN
|
|
BYTE
|
|
CHAR
|
|
DOUBLE
|
|
FLOAT
|
|
INT
|
|
LONG
|
|
SHORT
|
|
VOID
|
Method Summary | |
---|---|
JType |
getErasedType()
Returns this type with no type parameters or type variables. |
java.lang.String |
getJNISignature()
Returns 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()
Returns a type name as it would be specified in Java source, with the package name included. |
java.lang.String |
getQualifiedBinaryName()
A binary type name as specified by the Java Language Spec, ThirdEdition. |
java.lang.String |
getQualifiedBoxedSourceName()
|
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. |
java.lang.String |
getUninitializedFieldExpression()
|
JAnnotationType |
isAnnotation()
Returns this instance as a JAnnotationType if it is an annotation
or null if it is not. |
JArrayType |
isArray()
|
JClassType |
isClass()
Returns this instance if the erased version of this type is a class (as opposed to a primitive, array, or interface) or null if it is not. |
JClassType |
isClassOrInterface()
Returns this instance if the erased version of this type is a class or interface (as opposed to a primitive or array array) or null if it is not. |
JEnumType |
isEnum()
Returns this instance if it is an enumeration or null if it is
not. |
JGenericType |
isGenericType()
Returns this instance if it is a real class that has type parameters or null
if it is not. |
JClassType |
isInterface()
Returns this instance if it is an interface or null if it is not. |
JParameterizedType |
isParameterized()
Returns this instance as a JParameterizedType if it is a parameterized type
or null if it is not. |
JPrimitiveType |
isPrimitive()
|
JRawType |
isRawType()
Returns the raw type if this is a JRawType , otherwise returns
null . |
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 |
---|
public static final JPrimitiveType BOOLEAN
public static final JPrimitiveType BYTE
public static final JPrimitiveType CHAR
public static final JPrimitiveType DOUBLE
public static final JPrimitiveType FLOAT
public static final JPrimitiveType INT
public static final JPrimitiveType LONG
public static final JPrimitiveType SHORT
public static final JPrimitiveType VOID
Method Detail |
---|
public static JPrimitiveType[] values()
for (JPrimitiveType c : JPrimitiveType.values()) System.out.println(c);
public static JPrimitiveType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static JPrimitiveType parse(java.lang.String name)
public JType getErasedType()
JType
getErasedType
in interface JType
public java.lang.String getJNISignature()
JType
Z
[B
Ljava/lang/String;
getJNISignature
in interface JType
public JType getLeafType()
JType
getLeafType
in interface JType
public java.lang.String getParameterizedQualifiedSourceName()
JType
getParameterizedQualifiedSourceName
in interface JType
public java.lang.String getQualifiedBinaryName()
JType
getQualifiedBinaryName
in interface JType
public java.lang.String getQualifiedBoxedSourceName()
public java.lang.String getQualifiedSourceName()
JType
getQualifiedSourceName
in interface JType
public java.lang.String getSimpleSourceName()
JType
getSimpleSourceName
in interface JType
public java.lang.String getUninitializedFieldExpression()
public JAnnotationType isAnnotation()
JType
JAnnotationType
if it is an annotation
or null
if it is not.
isAnnotation
in interface JType
public JArrayType isArray()
isArray
in interface JType
public JClassType isClass()
JType
null
if it is not.
isClass
in interface JType
public JClassType isClassOrInterface()
JType
null
if it is not.
isClassOrInterface
in interface JType
public JEnumType isEnum()
JType
null
if it is
not.
isEnum
in interface JType
public JGenericType isGenericType()
JType
null
if it is not.
isGenericType
in interface JType
public JClassType isInterface()
JType
null
if it is not.
isInterface
in interface JType
public JParameterizedType isParameterized()
JType
JParameterizedType
if it is a parameterized type
or null
if it is not.
isParameterized
in interface JType
public JPrimitiveType isPrimitive()
isPrimitive
in interface JType
public JRawType isRawType()
JType
JRawType
, otherwise returns
null
.
isRawType
in interface JType
public JTypeParameter isTypeParameter()
isTypeParameter
in interface JType
public JWildcardType isWildcard()
isWildcard
in interface JType
public java.lang.String toString()
toString
in class java.lang.Enum<JPrimitiveType>
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |