org.exolab.javasource
Class JPrimitiveType
java.lang.Object
org.exolab.javasource.JType
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
|
Constructor Summary |
protected |
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. |
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.
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.
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.