org.exolab.javasource
Class JPrimitiveType

java.lang.Object
  extended by org.exolab.javasource.JType
      extended by org.exolab.javasource.JPrimitiveType

public final class JPrimitiveType
extends JType

JType sub-class for java primitives.

Since:
1.1
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Ralf Joachim

Field Summary
 
Fields inherited from class org.exolab.javasource.JType
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, SHORT
 
Constructor Summary
protected JPrimitiveType(java.lang.String name, java.lang.String wrapperName)
          Creates a new JPrimitiveType for a primitive with the given name and wrapper name.
 
Method Summary
 java.lang.String getWrapperName()
          Return the name of the wrapper object for a primitive type, null for non-primitive types.
 java.lang.String toString()
          
Returns the String representation of this JType.
 
Methods inherited from class org.exolab.javasource.JType
getLocalName, getName, isArray, isPrimitive, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JPrimitiveType

protected JPrimitiveType(java.lang.String name,
                         java.lang.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 Detail

getWrapperName

public java.lang.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 java.lang.String toString()

Returns the String representation of this JType.

Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.