|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Generation is a simple interface which allows to generate object file depending on their nature. The compiler uses Meta Object to build the input source tree.
| Method Summary | |
void |
addMappingGenerator(java.lang.String mappername,
MOPFactory mappinggenerator)
Adds a mapping generator which generates a specific mapping part. |
void |
generate(Class mo,
org.objectweb.jorm.util.io.api.TargetHolder th,
org.objectweb.jorm.compiler.lib.JormCompilerParameter cp,
org.objectweb.jorm.lib.JormConfigurator jcc)
Generates code for the given Class. |
void |
generate(CompositeName mo,
org.objectweb.jorm.util.io.api.TargetHolder th,
org.objectweb.jorm.compiler.lib.JormCompilerParameter cp)
Generates code for the given CompositeName. |
void |
init()
Initializes the generator. |
void |
setCompilerConfigurator(org.objectweb.jorm.lib.JormConfigurator jcc)
Assigns the compiler configurator to this generator. |
void |
setCompilerParameter(org.objectweb.jorm.compiler.lib.JormCompilerParameter jcp)
Assigns the compiler parameter to this generator. |
void |
setMetaInfoManager(Manager mim)
Assigns the meta information manager to this generator. |
void |
setPathExplorer(org.objectweb.jorm.util.io.api.PathExplorer pathexpl)
Assigns a PathExplorer object for locating files that have to be parsed. |
| Method Detail |
public void init()
throws PException
PExceptionpublic void setCompilerParameter(org.objectweb.jorm.compiler.lib.JormCompilerParameter jcp)
jcp - the compiler parameter.public void setCompilerConfigurator(org.objectweb.jorm.lib.JormConfigurator jcc)
jcc - the compiler configurator.public void setMetaInfoManager(Manager mim)
mim - the meta information manager to use.public void setPathExplorer(org.objectweb.jorm.util.io.api.PathExplorer pathexpl)
pathexpl - the PathExplorer to be used for file location
public void addMappingGenerator(java.lang.String mappername,
MOPFactory mappinggenerator)
mappername - The name of the mapper.mappinggenerator - The Mapping Verifier object.
public void generate(Class mo,
org.objectweb.jorm.util.io.api.TargetHolder th,
org.objectweb.jorm.compiler.lib.JormCompilerParameter cp,
org.objectweb.jorm.lib.JormConfigurator jcc)
throws PException
mo - The class meta-object.th - The target holder which allows to create files.cp - This parameter permits to reach the compilation parameters.jcc - The actual configuration of the compiler.
PException
public void generate(CompositeName mo,
org.objectweb.jorm.util.io.api.TargetHolder th,
org.objectweb.jorm.compiler.lib.JormCompilerParameter cp)
throws PException
mo - The composite name meta-object.th - The target holder which allows to create files.cp - This parameter permits to reach the compilation parameters.
PException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||