Public Member Functions | Static Public Attributes | Protected Member Functions

org.exolab.javasource.JType Class Reference

Inheritance diagram for org.exolab.javasource.JType:
org.exolab.javasource.JStructure org.exolab.javasource.JAnnotationType org.exolab.javasource.JClass org.exolab.javasource.JInterface org.exolab.castor.builder.util.DescriptorJClass org.exolab.javasource.JClass.JInnerClass

List of all members.

Public Member Functions

final JType createArray ()
JType getComponentType ()
String getLocalName ()
String getName ()
final boolean isArray ()
boolean isPrimitive ()
String toString ()

Static Public Attributes

static final JType Boolean = new JType("boolean")
static final JType Byte = new JType("byte")
static final JType Char = new JType("char")
static final JType Double = new JType("double")
static final JType Float = new JType("float")
static final JType Int = new JType("int")
static final JType Long = new JType("long")
static final JType Short = new JType("short")

Protected Member Functions

 JType (String name)
void changePackage (String newPackage)

Detailed Description

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:57

Constructor & Destructor Documentation

org.exolab.javasource.JType.JType ( String  name  )  [protected]

Creates a new JType with the given name

Parameters:
the name of the type

Referenced by org.exolab.javasource.JType.createArray(), and org.exolab.javasource.JAnnotationType.main().


Member Function Documentation

void org.exolab.javasource.JType.changePackage ( String  newPackage  )  [protected]

Allows subtypes, such as JClass to alter the package to which this JType belongs

Parameters:
newPackage the new package to which this JType belongs
Note: The package name cannot be changed on a primitive type.

References org.exolab.javasource.JType.isPrimitive().

Referenced by org.exolab.javasource.JStructure.setPackageName().

final JType org.exolab.javasource.JType.createArray (  ) 

Creates a JType Object representing an array of the current JType.

Returns:
the new JType which is represents an array.

References org.exolab.javasource.JType.getName(), and org.exolab.javasource.JType.JType().

Referenced by org.exolab.castor.builder.CollectionInfoJ2.createAccessMethods(), and org.exolab.castor.builder.CollectionInfo.createAccessMethods().

String org.exolab.javasource.JType.getName (  ) 

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties