public class JType
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
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).
|
| Modifier | Constructor and Description |
|---|---|
protected |
JType(java.lang.String name)
Creates a new JType with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
changePackage(java.lang.String newPackage)
Change the package this JType belongs to.
|
java.lang.String |
getLocalName()
Returns the unqualified Java type name (i.e.
|
java.lang.String |
getName()
Returns the qualified Java type name.
|
java.lang.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.
|
java.lang.String |
toString()
Returns the String representation of this JType, which is simply the name
of this type.
|
public static final JType BOOLEAN
public static final JType BYTE
public static final JType CHAR
public static final JType DOUBLE
public static final JType FLOAT
public static final JType INT
public static final JType LONG
public static final JType SHORT
protected JType(java.lang.String name)
name - the name of the typepublic final java.lang.String getLocalName()
public final java.lang.String getName()
public final java.lang.String getWrapperName()
public final boolean isPrimitive()
public boolean isArray()
public java.lang.String toString()
toString in class java.lang.Objectprotected final void changePackage(java.lang.String newPackage)
newPackage - the new package to which this JType belongs Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com