|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.javasource.JType
public class JType
Represents a primitive or class type.
Field Summary | |
---|---|
static JPrimitiveType |
BOOLEAN
JType for a boolean (Boolean). |
static JPrimitiveType |
BYTE
JType instance for a byte (Byte). |
static JPrimitiveType |
CHAR
JType instance for a char (Char). |
static JPrimitiveType |
DOUBLE
JType instance for a double (Double). |
static JPrimitiveType |
FLOAT
JType instance for a float (Float). |
static JPrimitiveType |
INT
JType instance for a int (Integer). |
static JPrimitiveType |
LONG
JType instance for a long (Long). |
static JPrimitiveType |
SHORT
JType instance for a short (Short). |
Constructor Summary | |
---|---|
JType(java.lang.String name)
Creates a new JType with the given name. |
Method Summary | |
---|---|
java.lang.String |
getLocalName()
Returns the unqualified Java type name (i.e. |
java.lang.String |
getName()
Returns the qualified Java type name. |
boolean |
isArray()
Returns true if this type represents an Array. |
boolean |
isPrimitive()
Returns true if this type represents a Java primitive type. |
protected void |
setName(java.lang.String name)
Sets the qualified name of this type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field 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
Constructor Detail |
---|
public JType(java.lang.String name)
name
- The name of the type.Method Detail |
---|
public final java.lang.String getLocalName()
public final java.lang.String getName()
public final boolean isArray()
public final boolean isPrimitive()
protected void setName(java.lang.String name)
name
- the (qualified) name of the type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |