|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.sourceGenerator.ReflectedClassSource
Use reflection to create a 'source' file for the specified class.
Constructor Summary | |
ReflectedClassSource()
Constructor for the ReflectedClassSource object |
Method Summary | |
protected void |
addClassDecl(java.lang.String className,
java.lang.Class clazz,
java.lang.StringBuffer buff)
Adds a feature to the ClassDecl attribute of the ReflectedClassSource object |
protected void |
addFields(java.lang.Class clazz,
java.lang.StringBuffer buff)
Adds a feature to the Fields attribute of the ReflectedClassSource object |
void |
addMethodSource(java.lang.reflect.Method method,
java.lang.Class clazz,
java.lang.StringBuffer buff)
Adds a feature to the BodySource attribute of the ReflectedClassSource object |
protected java.lang.String |
getJustClassName(java.lang.String className)
Gets the JustClassName attribute of the ReflectedClassSource object |
protected java.lang.String |
getPackageDecl(java.lang.String className,
java.lang.String targetPackageName)
From the className and targetPackageName deterimine the package declartion for this generated class. |
java.lang.StringBuffer |
getSource(java.lang.Class clazz,
java.lang.String overridePackageName)
Gets the Source attribute of the ReflectedClassSource object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReflectedClassSource()
Method Detail |
public java.lang.StringBuffer getSource(java.lang.Class clazz, java.lang.String overridePackageName) throws java.io.IOException
clazz
- overridePackageName
-
java.io.IOException
protected java.lang.String getJustClassName(java.lang.String className)
className
-
protected java.lang.String getPackageDecl(java.lang.String className, java.lang.String targetPackageName)
className
- targetPackageName
-
public void addMethodSource(java.lang.reflect.Method method, java.lang.Class clazz, java.lang.StringBuffer buff)
clazz
- The feature to be added to the BodySource attributemethod
- The feature to be added to the MethodSource attributebuff
- The feature to be added to the MethodSource attributeprotected void addFields(java.lang.Class clazz, java.lang.StringBuffer buff)
clazz
- The feature to be added to the Fields attributebuff
- The feature to be added to the Fields attributeprotected void addClassDecl(java.lang.String className, java.lang.Class clazz, java.lang.StringBuffer buff)
className
- The feature to be added to the ClassDecl attributeclazz
- The feature to be added to the ClassDecl attributebuff
- The feature to be added to the ClassDecl attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |