JAnnotatedElementDescriptorJClass, JDODescriptorJClass, JEnum, JInnerClasspublic class JClass extends AbstractJClass
| Constructor | Description | 
|---|---|
JClass(java.lang.String name) | 
 Creates a new JClass with the given name. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
void | 
addImport(java.lang.String className) | 
 Adds the given import to this JStructure. 
 | 
void | 
addMember(JMember jMember) | 
 Adds the given JMember to this JStructure. 
 | 
void | 
changeLocalName(java.lang.String localName) | 
 Changes the local name of this class type. 
 | 
JTypeName | 
getSuperClass() | 
 Returns the super class that this class extends. 
 | 
java.lang.String | 
getSuperClassQualifiedName() | 
 Returns the qualified name of the super class that this class extends. 
 | 
void | 
print(JSourceWriter jsw,
     boolean classOnly) | 
 Deprecated.
 
Please use the Velocity-template based approach instead. 
 | 
void | 
setSuperClass(java.lang.String superClass) | 
 Sets the super Class that this class extends. 
 | 
addConstant, addConstructor, addField, addMethod, addMethod, addMethods, addSourceCode, createConstructor, createConstructor, createInnerClass, getConstant, getConstantCount, getConstants, getConstructor, getConstructors, getContructorsCount, getField, getFieldCount, getFields, getInnerClassCount, getInnerClasses, getMethod, getMethod, getMethodCount, getMethods, getSourceCodeEntries, getSourceCodeEntryCount, getStaticInitializationCode, print, printClassHeaders, printConstantDefinitions, printConstructors, printInnerClasses, printMemberVariables, printMethods, printSourceCodeFragments, printStaticInitializers, removeConstant, removeConstant, removeConstructor, removeField, removeField, removeInnerClass, removeMethodaddAnnotation, addImport, addImport, addImportInternal, addInterface, getAnnotatedElementHelper, getAnnotation, getAnnotations, getFilename, getHeader, getImportCount, getImports, getInterfaceCount, getInterfaces, getJDocComment, getModifiers, getPackageName, hasAnnotations, hasImport, isAnnotationPresent, print, printHeader, printImportDeclarations, printPackageDeclaration, removeAnnotation, removeImport, removeInterface, setHeader, toStringgetLocalName, getName, isArray, isPrimitive, setNamepublic JClass(java.lang.String name)
name - The name of the JClass to create.public final void addImport(java.lang.String className)
addImport in class JStructureclassName - Name of the class to import.public void addMember(JMember jMember)
addMember in class JStructurejMember - The JMember to add to this JStructure.public final JTypeName getSuperClass()
public final java.lang.String getSuperClassQualifiedName()
public final void setSuperClass(java.lang.String superClass)
superClass - The super Class that this Class extends.public void print(JSourceWriter jsw, boolean classOnly)
print in class AbstractJClassjsw - The JSourceWriter to print to. Must not be null.classOnly - If true, the file header, package declaration, and
        imports are not printed.SourceGenerator.setJClassPrinterType(String)public void changeLocalName(java.lang.String localName)
localName - The new local name to be used.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com