org.exolab.javasource
Class JClass
- JAnnotatedElement
A representation of the Java Source code for a Java Class. This is a useful
utility when creating in memory source code. This package was modelled after
the Java Reflection API as much as possible to reduce the learning curve.
$Revision: 7166 $ $Date: 2005-05-08 12:32:06 -0600 (Sun, 08 May 2005) $
JClass(String name) - Creates a new JClass with the given name.
|
addConstructor , addField , addMethod , addMethod , addMethods , createConstructor , createConstructor , createInnerClass , getConstructor , getConstructors , getContructorsCount , getField , getFieldCount , getFields , getInnerClassCount , getInnerClasses , getMethod , getMethod , getMethodCount , getMethods , getStaticInitializationCode , print , print , printClassHeaders , printConstructors , printInnerClasses , printMemberVariables , printMethods , printStaticInitializers , removeConstructor , removeField , removeField , removeInnerClass , removeMethod |
addAnnotation , addField , addImport , addImport , addImport , addImportInternal , addInterface , addMember , getAnnotatedElementHelper , getAnnotation , getAnnotations , getField , getFields , getFilename , getHeader , getImportCount , getImports , getInterfaceCount , getInterfaces , getJDocComment , getModifiers , getPackageName , hasAnnotations , hasImport , isAnnotationPresent , print , print , printHeader , printImportDeclarations , printPackageDeclaration , removeAnnotation , removeImport , setHeader , toString |
JClass
public JClass(String name)
Creates a new JClass with the given name.
name
- The name of the JClass to create.
changeLocalName
public void changeLocalName(String localName)
Changes the local name of this class type.
localName
- The new local name to be used.
getSuperClass
public final JTypeName getSuperClass()
Returns the super class that this class extends.
- superClass The super class that this class extends.
getSuperClassQualifiedName
public final String getSuperClassQualifiedName()
Returns the qualified name of the super class that this class extends.
- superClass The qualified name of the super class that this class extends.
setSuperClass
public final void setSuperClass(String superClass)
Sets the super Class that this class extends.
superClass
- The super Class that this Class extends.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com