org.codehaus.modello.plugin.java.javasource
Class JComponentizedType

java.lang.Object
  extended by org.codehaus.modello.plugin.java.javasource.JType
      extended by org.codehaus.modello.plugin.java.javasource.JComponentizedType
Direct Known Subclasses:
JArrayType, JCollectionType

public class JComponentizedType
extends JType

JType sub-class for componentized types, such as array as collections.

Since:
1.0.4
Version:
$Revision: 1041 $ $Date: 2008-12-21 23:06:18 +0100 (dim. 21 d??c. 2008) $
Author:
Werner Guttman

Field Summary
 
Fields inherited from class org.codehaus.modello.plugin.java.javasource.JType
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, SHORT
 
Constructor Summary
protected JComponentizedType(java.lang.String name, JType componentType, boolean useJava50)
          Creates an instance of a componentized type, of type 'name'.
 
Method Summary
 JType getComponentType()
          Returns the component type.
 boolean isUseJava50()
          Indicates whether Java 5.0 is used.
 
Methods inherited from class org.codehaus.modello.plugin.java.javasource.JType
changePackage, createArray, getLocalName, getName, isArray, isPrimitive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JComponentizedType

protected JComponentizedType(java.lang.String name,
                             JType componentType,
                             boolean useJava50)
Creates an instance of a componentized type, of type 'name'.

Parameters:
name - Type name for this componentized type.
componentType - Component type.
useJava50 - True if Java 5.0 should be used.
Method Detail

getComponentType

public final JType getComponentType()
Returns the component type.

Overrides:
getComponentType in class JType
Returns:
The component type.

isUseJava50

public final boolean isUseJava50()
Indicates whether Java 5.0 is used.

Returns:
True if Java 5.0 is used.