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) |
org.exolab.javasource.JType.JType | ( | String | name | ) | [protected] |
Creates a new JType with the given name
the | name of the type |
Referenced by org.exolab.javasource.JType.createArray(), and org.exolab.javasource.JAnnotationType.main().
void org.exolab.javasource.JType.changePackage | ( | String | newPackage | ) | [protected] |
Allows subtypes, such as JClass to alter the package to which this JType belongs
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.
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().
JType org.exolab.javasource.JType.getComponentType | ( | ) |
If this JType is an array this method will returns the component type of the array, otherwise null will be returned.
Referenced by org.exolab.javasource.JAnnotationType.addElement(), org.exolab.javasource.JInterface.addField(), org.exolab.javasource.JClass.addField(), org.exolab.javasource.JInterface.addMethod(), org.exolab.javasource.JClass.addMethod(), org.exolab.javasource.JMethod.addParameter(), org.exolab.castor.builder.CollectionInfoODMG30.createGetMethod(), org.exolab.castor.builder.CollectionInfoJ2.createGetMethod(), org.exolab.castor.builder.CollectionInfo.createGetMethod(), and org.exolab.javasource.JMethodSignature.getParameterClassNames().
String org.exolab.javasource.JType.getLocalName | ( | ) |
References org.exolab.javasource.JType.getName().
Referenced by org.exolab.castor.builder.DescriptorSourceFactory.createSource(), org.exolab.castor.builder.SourceFactory.createSourceCode(), org.exolab.javasource.JStructure.getFilename(), org.exolab.javasource.JAnnotationType.JAnnotationType(), org.exolab.javasource.JClass.JClass(), org.exolab.javasource.JCompUnit.JCompUnit(), org.exolab.javasource.JInterface.JInterface(), org.exolab.javasource.JMethodSignature.JMethodSignature(), org.exolab.javasource.JStructure.JStructure(), org.exolab.javasource.JStructure.print(), org.exolab.javasource.JInterface.print(), org.exolab.javasource.JConstructor.print(), org.exolab.javasource.JClass.print(), org.exolab.javasource.JAnnotationType.print(), and org.exolab.javasource.JAnnotation.print().
String org.exolab.javasource.JType.getName | ( | ) |
Referenced by org.exolab.javasource.JAnnotationType.addElement(), org.exolab.javasource.JClass.addField(), org.exolab.javasource.JStructure.addImport(), org.exolab.javasource.JInterface.addMethod(), org.exolab.javasource.JClass.addMethod(), org.exolab.javasource.JConstructor.addParameter(), org.exolab.javasource.JType.createArray(), org.exolab.castor.builder.MemberFactory.createFieldInfo(), org.exolab.castor.builder.CollectionInfoODMG30.createGetMethod(), org.exolab.castor.builder.CollectionInfoJ2.createGetMethod(), org.exolab.castor.builder.CollectionInfo.createGetMethod(), org.exolab.castor.builder.CollectionInfoODMG30.createRemoveByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createRemoveByIndexMethod(), org.exolab.castor.builder.CollectionInfo.createRemoveByIndexMethod(), org.exolab.castor.builder.SourceFactory.createTestableMethods(), org.exolab.javasource.JType.getLocalName(), org.exolab.castor.builder.types.XSType.newInstanceCode(), org.exolab.castor.builder.types.XSTime.newInstanceCode(), org.exolab.castor.builder.types.XSGYearMonth.newInstanceCode(), org.exolab.castor.builder.types.XSGYear.newInstanceCode(), org.exolab.castor.builder.types.XSGMonthDay.newInstanceCode(), org.exolab.castor.builder.types.XSGMonth.newInstanceCode(), org.exolab.castor.builder.types.XSGDay.newInstanceCode(), org.exolab.castor.builder.types.XSDate.newInstanceCode(), org.exolab.javasource.JMethodSignature.toString(), and org.exolab.javasource.JConstructor.toString().
final boolean org.exolab.javasource.JType.isArray | ( | ) |
Checks to see if this JType represents an array.
Referenced by org.exolab.javasource.JAnnotationType.addElement(), org.exolab.javasource.JInterface.addField(), org.exolab.javasource.JClass.addField(), org.exolab.javasource.JInterface.addMethod(), org.exolab.javasource.JClass.addMethod(), org.exolab.javasource.JMethod.addParameter(), org.exolab.castor.builder.CollectionInfoODMG30.createGetMethod(), org.exolab.castor.builder.CollectionInfoJ2.createGetMethod(), org.exolab.castor.builder.CollectionInfo.createGetMethod(), and org.exolab.javasource.JMethodSignature.getParameterClassNames().
boolean org.exolab.javasource.JType.isPrimitive | ( | ) |
Checks to see if this JType represents a primitive
References org.exolab.javasource.JType.Boolean, org.exolab.javasource.JType.Byte, org.exolab.javasource.JType.Char, org.exolab.javasource.JType.Double, org.exolab.javasource.JType.Float, org.exolab.javasource.JType.Int, org.exolab.javasource.JType.Long, and org.exolab.javasource.JType.Short.
Referenced by org.exolab.javasource.JAnnotationType.addElement(), org.exolab.javasource.JInterface.addField(), org.exolab.javasource.JClass.addField(), org.exolab.javasource.JInterface.addMethod(), org.exolab.javasource.JClass.addMethod(), org.exolab.javasource.JMethod.addParameter(), org.exolab.javasource.JConstructor.addParameter(), org.exolab.javasource.JType.changePackage(), org.exolab.castor.builder.FieldInfo.createAccessMethods(), org.exolab.castor.builder.SourceFactory.createEqualsMethod(), org.exolab.castor.builder.MemberFactory.createFieldInfo(), org.exolab.castor.builder.FieldInfo.createJavaField(), org.exolab.castor.builder.SourceFactory.createTestableMethods(), and org.exolab.javasource.JMethodSignature.getParameterClassNames().
String org.exolab.javasource.JType.toString | ( | ) |
Returns the String representation of this JType, which is simply the name of this type.
References org.exolab.javasource.JType.toString().
Referenced by org.exolab.castor.builder.MemberFactory.createFieldInfo(), org.exolab.castor.builder.types.XSType.createFromJavaObjectCode(), org.exolab.castor.builder.CollectionInfoODMG30.createGetByIndexMethod(), org.exolab.castor.builder.CollectionInfoJ2.createGetByIndexMethod(), org.exolab.castor.builder.CollectionInfo.createGetByIndexMethod(), org.exolab.castor.builder.CollectionInfoODMG30.createGetMethod(), org.exolab.castor.builder.CollectionInfoJ2.createGetMethod(), org.exolab.castor.builder.CollectionInfo.createGetMethod(), org.exolab.javasource.JInterface.print(), org.exolab.javasource.JClass.print(), org.exolab.javasource.JAnnotationTypeElement.print(), org.exolab.javasource.JType.toString(), and org.exolab.javasource.JParameter.toString().
final JType org.exolab.javasource.JType.Boolean = new JType("boolean") [static] |
final JType org.exolab.javasource.JType.Byte = new JType("byte") [static] |
final JType org.exolab.javasource.JType.Char = new JType("char") [static] |
Referenced by org.exolab.javasource.JType.isPrimitive().
final JType org.exolab.javasource.JType.Double = new JType("double") [static] |
final JType org.exolab.javasource.JType.Float = new JType("float") [static] |
final JType org.exolab.javasource.JType.Int = new JType("int") [static] |
final JType org.exolab.javasource.JType.Long = new JType("long") [static] |
final JType org.exolab.javasource.JType.Short = new JType("short") [static] |