org.exolab.javasource
Class JCollectionType

java.lang.Object
  extended by org.exolab.javasource.JType
      extended by org.exolab.javasource.JComponentizedType
          extended by org.exolab.javasource.JCollectionType

public final class JCollectionType
extends JComponentizedType

JType sub-class for collections.

Since:
1.0.4
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Werner Guttman

Field Summary
 
Fields inherited from class org.exolab.javasource.JType
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, SHORT
 
Constructor Summary
JCollectionType(java.lang.String typeName, JType componentType, boolean useJava50)
          Creates an instance of a collection type, of type 'collectionName'.
JCollectionType(java.lang.String typeName, JType componentType, boolean useJava50, boolean useExtends)
          Creates an instance of a collection type, of type 'collectionName'.
JCollectionType(java.lang.String typeName, java.lang.String instanceName, JType componentType, boolean useJava50)
          Creates an instance of a collection type, of type 'collectionName'.
 
Method Summary
 java.lang.String getInstanceName()
          Returns the instance name of this collection type.
 java.lang.String toString()
          
Returns the String representation of this JType.
 
Methods inherited from class org.exolab.javasource.JComponentizedType
getComponentType, isUseJava50
 
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

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,
                       JType componentType,
                       boolean useJava50,
                       boolean useExtends)
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.
useExtends - True if '? extends' should be emitted for generics (Java 5.0 ff only).

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 java.lang.Object


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com