Class JCollectionType


  • public final class JCollectionType
    extends JComponentizedType
    JType sub-class for collections.
    Since:
    1.0.4
    Version:
    $Revision$ $Date$
    • Constructor Summary

      Constructors 
      Constructor Description
      JCollectionType​(java.lang.String typeName, java.lang.String instanceName, JType componentType, boolean useJava50)
      Creates an instance of a collection type, of type 'collectionName'.
      JCollectionType​(java.lang.String typeName, JType componentType, boolean useJava50)
      Creates an instance of a collection type, of type 'collectionName'.
    • Field Detail

      • _instanceName

        private java.lang.String _instanceName
        Name of the actual collection instance to be used, e.g. java.util.ArrayList.
    • Constructor Detail

      • JCollectionType

        public JCollectionType​(java.lang.String typeName,
                               JType componentType,
                               boolean useJava50)
        Creates an instance of a collection type, of type 'collectionName'.
        Parameters:
        typeName - Name of the collection type interface.
        componentType - Component type.
        useJava50 - True if Java 5.0 should be used.
      • JCollectionType

        public JCollectionType​(java.lang.String typeName,
                               java.lang.String instanceName,
                               JType componentType,
                               boolean useJava50)
        Creates an instance of a collection type, of type 'collectionName'.
        Parameters:
        typeName - Name of the collection type interface.
        instanceName - Name of the actual collection type instance.
        componentType - Component type.
        useJava50 - True if Java 5.0 should be used.
    • Method Detail

      • getInstanceName

        public java.lang.String getInstanceName()
        Returns the instance name of this collection type.
        Returns:
        The instance name of this collection type.
      • toString

        public java.lang.String toString()
        Returns the String representation of this JType.
        Overrides:
        toString in class JType
        Returns:
        the String representation of this JType