|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jorm.comp.compiler.lib.BasicCompiler
| Field Summary | |
protected BasicClassLoader |
classLoader
|
protected CompilerParameter |
compilerParameter
The compiler parameters |
static java.lang.String |
FILE_MAPPER_NAME
|
protected JormGenerator |
generator
generator is a simple JormGenerator object, which is able to generate java file. |
protected org.objectweb.util.monolog.api.Logger |
logger
The logger used by the compiler to log messages |
protected Manager |
manager
The manager is in charge of the meta information management. |
static java.lang.String |
MEMORY_MAPPER_NAME
|
protected Parser |
parser
parser object is able to parse XML files and build an internal representation of its content. |
static java.lang.String |
RDB_MAPPER_NAME
|
| Constructor Summary | |
BasicCompiler()
It builds a BasicCompiler with a new BasicCompilerParameter. |
|
BasicCompiler(CompilerParameter compilerParameter,
BasicClassLoader bcl)
It builds a BasicCompiler with the specified BasicCompilerParameter instance. |
|
| Method Summary | |
void |
compileFiles()
Compiles java files generated by the generator system. |
java.util.Collection |
generateFiles(java.util.Collection c)
Generates java files for all meta object specified in the Collection parameter. |
CompilerParameter |
getCompilerParameter()
It retrieves the CompilerParameter associated to the compiler |
java.util.Collection |
parseFiles(java.util.Collection fns)
Parses the input files and build the meta information. |
void |
process()
Creates class instances for the XML parser, the Meta Information Manager and manages the JormGenerator system. |
void |
verifyContext()
Verifies if the needed parameters are available for a normal processing. |
void |
verifyMetaInfo(java.util.Collection mos)
Verifies if the metainformation is in a properly state. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String RDB_MAPPER_NAME
public static final java.lang.String FILE_MAPPER_NAME
public static final java.lang.String MEMORY_MAPPER_NAME
protected Parser parser
protected Manager manager
protected JormGenerator generator
protected CompilerParameter compilerParameter
protected BasicClassLoader classLoader
protected org.objectweb.util.monolog.api.Logger logger
| Constructor Detail |
public BasicCompiler()
public BasicCompiler(CompilerParameter compilerParameter,
BasicClassLoader bcl)
| Method Detail |
public CompilerParameter getCompilerParameter()
public void process()
throws PException
public void verifyContext()
throws PException
public java.util.Collection parseFiles(java.util.Collection fns)
throws PException
public void verifyMetaInfo(java.util.Collection mos)
throws PException
public java.util.Collection generateFiles(java.util.Collection c)
throws PException
c - is the collection of meta objects
public void compileFiles()
throws PException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||