org.exolab.javasource

Class JPrimitiveType


public final class JPrimitiveType
extends JType

JType sub-class for java primitives.
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Ralf Joachim
Since:
1.1

Field Summary

Fields inherited from class org.exolab.javasource.JType

BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, SHORT

Constructor Summary

JPrimitiveType(String name, String wrapperName)
Creates a new JPrimitiveType for a primitive with the given name and wrapper name.

Method Summary

String
getWrapperName()
Return the name of the wrapper object for a primitive type, null for non-primitive types.
String
toString()

Returns the String representation of this JType.

Methods inherited from class org.exolab.javasource.JType

getLocalName, getName, isArray, isPrimitive, setName

Constructor Details

JPrimitiveType

protected JPrimitiveType(String name,
                         String wrapperName)
Creates a new JPrimitiveType for a primitive with the given name and wrapper name. This constructor is protected so it can only be used by the primitives defined at JType.
Parameters:
name - The name of the type.
wrapperName - The name of the wrapper Object type for this primitive type.

Method Details

getWrapperName

public String getWrapperName()
Return the name of the wrapper object for a primitive type, null for non-primitive types.
Returns:
The name of the wrapper object for a primitive type, null for non-primitive types.

toString

public String toString()

Returns the String representation of this JType.

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com