org.exolab.javasource
public class JType extends Object
Version: $Revision: 6324 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Field Summary | |
---|---|
static JType | BOOLEAN
JType for a boolean (Boolean). |
static JType | BYTE
JType instance for a byte (Byte). |
static JType | CHAR
JType instance for a char (Char). |
static JType | DOUBLE
JType instance for a double (Double). |
static JType | FLOAT
JType instance for a float (Float). |
static JType | INT
JType instance for a int (Integer). |
static JType | LONG
JType instance for a long (Long). |
static JType | SHORT
JType instance for a short (Short). |
Constructor Summary | |
---|---|
protected | JType(String name)
Creates a new JType with the given name.
|
Method Summary | |
---|---|
protected void | changePackage(String newPackage)
Change the package this JType belongs to. |
String | getLocalName()
Returns the unqualified Java type name (i.e. without package).
|
String | getName()
Returns the qualified Java type name.
|
String | getWrapperName()
Return the name of the wrapper object for a primitive type, null for
non-primitive types.
|
boolean | isArray()
Returns true if this type represents an Array. |
boolean | isPrimitive()
Checks to see if this JType represents a primitive type.
|
String | toString()
Returns the String representation of this JType, which is simply the name
of this type.
|
Parameters: name the name of the type
Parameters: newPackage
the new package to which this JType belongs
Note: The package name cannot be changed on a
primitive type.
Returns: the unqualified Java type name.
Returns: the qualified Java type name.
Returns: the name of the wrapper object for a primitive type, null for non-primitive types.
Returns: true if this type represents an Array.
Returns: true if this JType represents a primitive type, otherwise false.
Returns: the String representation of this JType.