|
||||||||||
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,
JormCompilerParameter cp,
JormCompilerConfigurator jcc)
Generates code for the given Class. |
void |
generate(CompositeName mo,
org.objectweb.jorm.util.io.api.TargetHolder th,
JormCompilerParameter cp)
Generates code for the given CompositeName. |
void |
init()
Initializes the generator. |
void |
setCompilerConfigurator(JormCompilerConfigurator jcc)
Assigns the compiler configurator to this generator. |
void |
setCompilerParameter(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
PException
public void setCompilerParameter(JormCompilerParameter jcp)
jcp
- the compiler parameter.public void setCompilerConfigurator(JormCompilerConfigurator 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 locationpublic 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, JormCompilerParameter cp, JormCompilerConfigurator 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, 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 |