|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.oscg.jreleaseinfo.SourceGenerator
public class SourceGenerator
The SourceGenerator is a simple implementation of the
SourceGeneratorIF interface. In this class the code to be
generated is hard coded.
Other implementation may provide extensions (like SourceGeneratorApp)
or other mechanism (like using a template engine, etc).
| Constructor Summary | |
|---|---|
SourceGenerator()
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
createCode()
Utility method to write the class java code to a String. |
void |
setClassName(java.lang.String className)
Set the classname. |
void |
setPackageName(java.lang.String packageName)
Set the packagename. |
void |
setProperties(java.util.Map props)
Set the property map. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceGenerator()
| Method Detail |
|---|
public void setPackageName(java.lang.String packageName)
setPackageName in interface SourceGeneratorIFpackageName - public void setClassName(java.lang.String className)
setClassName in interface SourceGeneratorIFclassName - public void setProperties(java.util.Map props)
setProperties in interface SourceGeneratorIFproperty - mappublic java.lang.String createCode()
createCode in interface SourceGeneratorIF
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||