org.exolab.javasource
public class JType extends Object
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:57 $
Field Summary | |
---|---|
static JType | Boolean |
static JType | Byte |
static JType | Char |
static JType | Double |
static JType | Float |
static JType | Int |
static JType | Long |
static JType | Short |
Constructor Summary | |
---|---|
protected | JType(String name)
Creates a new JType with the given name |
Method Summary | |
---|---|
protected void | changePackage(String newPackage)
Allows subtypes, such as JClass to alter the package to which
this JType belongs |
JType | createArray()
Creates a JType Object representing an array of the current
JType. |
JType | getComponentType()
If this JType is an array this method will returns the component type
of the array, otherwise null will be returned. |
String | getLocalName() |
String | getName() |
boolean | isArray()
Checks to see if this JType represents an array. |
boolean | isPrimitive()
Checks to see if this JType represents a primitive |
String | toString()
Returns the String representation of this JType, which is
simply the name of this type. |
Parameters: 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 new JType which is represents an array.
Returns: the component JType if this JType is an array, otherwise null.
Returns: true if this JType represents an array, otherwise false
Returns: true if this JType represents a primitive, otherwise false
Returns: the String representation of this JType