|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.objectwave.sourceGenerator.SourceCodeGenerator
This class does very little but house some common source generation routines. These routines are shared by the various other generating utilities.
| Field Summary | |
static MergeTemplate |
useThisTemplate
|
| Constructor Summary | |
SourceCodeGenerator()
|
|
| Method Summary | |
static void |
addClassElement(ClassElement meth,
java.util.Vector v,
boolean overwrite)
Generic source generation routine used by various SourceCodeGenerators. |
java.lang.String |
createClass(ClassInformation ci,
java.lang.String path)
This should probably be removed from this class. |
MergeTemplate |
getTemplate()
Generic method for getting the source code template to Generate an entire class. |
static void |
insertClassElement(ClassElement meth,
java.util.Vector v,
boolean overwrite)
Generic source generation routine used by various SourceCodeGenerators. |
static void |
main(java.lang.String[] args)
args[0] TemplateName args[1] TemplateFile args[2] SourceFile |
static void |
removeClassElement(ClassElement meth,
java.util.Vector v)
Remove the element in Vector v that is equal() to the param meth. |
static void |
setGenerationTemplate(MergeTemplate aTemplate)
Template used for generating a new class. |
static void |
writeClassElements(ClassElement[] elements,
java.lang.String fName)
Write the class elements to a file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static MergeTemplate useThisTemplate
| Constructor Detail |
public SourceCodeGenerator()
| Method Detail |
public static void setGenerationTemplate(MergeTemplate aTemplate)
aTemplate - The new GenerationTemplate value
public static void addClassElement(ClassElement meth,
java.util.Vector v,
boolean overwrite)
meth - The feature to be added to the ClassElement attributev - The feature to be added to the ClassElement attributeoverwrite - The feature to be added to the ClassElement attributeinsertClassElement(com.objectwave.sourceModel.ClassElement, java.util.Vector, boolean)
public static void insertClassElement(ClassElement meth,
java.util.Vector v,
boolean overwrite)
meth - v - overwrite - addClassElement(com.objectwave.sourceModel.ClassElement, java.util.Vector, boolean)
public static void removeClassElement(ClassElement meth,
java.util.Vector v)
meth - v -
public static void writeClassElements(ClassElement[] elements,
java.lang.String fName)
throws java.io.IOException
elements - fName -
java.io.IOExceptionpublic static void main(java.lang.String[] args)
args - The command line arguments
public MergeTemplate getTemplate()
throws java.io.IOException
java.io.IOException
public java.lang.String createClass(ClassInformation ci,
java.lang.String path)
throws java.io.IOException
ci - path -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||