org.exolab.javasource
Class JType
java.lang.Object
org.exolab.javasource.JType
public class JType
extends java.lang.Object
Represents a primitive or class type.
$Revision: 7166 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
JType(String name) - Creates a new JType with the given name.
|
String | getLocalName() - Returns the unqualified Java type name (i.e.
|
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(String name) - Sets the qualified name of this type.
|
BOOLEAN
public static final JPrimitiveType BOOLEAN
JType for a boolean (Boolean).
BYTE
public static final JPrimitiveType BYTE
JType instance for a byte (Byte).
CHAR
public static final JPrimitiveType CHAR
JType instance for a char (Char).
DOUBLE
public static final JPrimitiveType DOUBLE
JType instance for a double (Double).
FLOAT
public static final JPrimitiveType FLOAT
JType instance for a float (Float).
INT
public static final JPrimitiveType INT
JType instance for a int (Integer).
LONG
public static final JPrimitiveType LONG
JType instance for a long (Long).
SHORT
public static final JPrimitiveType SHORT
JType instance for a short (Short).
JType
public JType(String name)
Creates a new JType with the given name.
name
- The name of the type.
getLocalName
public final String getLocalName()
Returns the unqualified Java type name (i.e. without package).
- The unqualified Java type name.
getName
public final String getName()
Returns the qualified Java type name.
- The qualified Java type name.
isArray
public final boolean isArray()
Returns true if this type represents an Array.
- True if this type represents an Array.
isPrimitive
public final boolean isPrimitive()
Returns true if this type represents a Java primitive type.
- True if this type represents a Java primitive type.
setName
protected void setName(String name)
Sets the qualified name of this type.
name
- the (qualified) name of the type
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com