Package org.exolab.javasource
Class JPrimitiveType
java.lang.Object
org.exolab.javasource.JType
org.exolab.javasource.JPrimitiveType
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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JPrimitiveType
(String name, String wrapperName) Creates a new JPrimitiveType for a primitive with the given name and wrapper name. -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the wrapper object for a primitive type, null for non-primitive types.toString()
Returns the String representation of this JType.Methods inherited from class org.exolab.javasource.JType
getLocalName, getName, isArray, isPrimitive, setName
-
Constructor Details
-
JPrimitiveType
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
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
-