org.exolab.javasource

Class JComponentizedType

Known Direct Subclasses:
JArrayType, JCollectionType

public class JComponentizedType
extends JType

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

Field Summary

Fields inherited from class org.exolab.javasource.JType

BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, SHORT

Constructor Summary

JComponentizedType(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.exolab.javasource.JType

changePackage, getLocalName, getName, getWrapperName, isArray, isPrimitive, toString

Constructor Details

JComponentizedType

public JComponentizedType(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 Details

getComponentType

public JType getComponentType()
Returns the component type.
Returns:
the component type.

isUseJava50

public boolean isUseJava50()
Indicates whether Java 5.0 is used.
Returns:
True if Java 5.0 is used

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