org.exolab.javasource

Class JArrayType


public class JArrayType
extends JComponentizedType

JType sub-class for Arrays.
Since:
1.0.4

Field Summary

Fields inherited from class org.exolab.javasource.JType

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

Constructor Summary

JArrayType(JType componentType, boolean useJava50)
Creates an instance of a array type, of type 'name'.

Method Summary

boolean
isArray()
Returns true if this type represents an Array.
String
toString()
Returns the String representation of this JType, which is simply the name of this type.

Methods inherited from class org.exolab.javasource.JComponentizedType

getComponentType, isUseJava50

Methods inherited from class org.exolab.javasource.JType

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

Constructor Details

JArrayType

public JArrayType(JType componentType,
                  boolean useJava50)
Creates an instance of a array type, of type 'name'.
Parameters:
componentType - Component type.
useJava50 - True if Java 5.0 should be generated.

Method Details

isArray

public final boolean isArray()
Returns true if this type represents an Array.
Overrides:
isArray in interface JType
Returns:
true if this type represents an Array.

toString

public final String toString()
Returns the String representation of this JType, which is simply the name of this type.
Overrides:
toString in interface JType
Returns:
the String representation of this JType

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