Class 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

      Constructors 
      Modifier Constructor Description
      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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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 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