|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.compiler.lib.JormCompiler
Field Summary | |
protected JormCompilerConfigurator |
compilerConfigurator
The compiler configurator |
protected JormCompilerParameter |
compilerParameter
The compiler parameters |
protected Generator |
generator
generator is a simple JormGenerator object, which is able to generate java file. |
protected Logger |
logger
The logger used by the compiler to log messages |
protected LoggerFactory |
loggerFactory
The logger factory used by the compiler to log messages |
protected Manager |
manager
The manager is in charge of the meta information management. |
protected Parser |
parser
The parser object is able to parse XML files and build an internal representation of its content. |
protected Verifier |
verifier
The verifier is in charge to check the semantical validity of the meta information. |
protected Writer |
writer
domWriter is a DomWriter object that generates .pd files from org.w3c.dom.Document objects representing Class and CompositeName objects. |
Constructor Summary | |
JormCompiler()
It builds a JormCompiler with the default JormCompilerParameter and JormCompilerParameter. |
|
JormCompiler(JormCompilerParameter cp,
JormCompilerConfigurator cc)
It builds a JormCompiler with the specified JormCompilerParameter instance. |
Method Summary | |
void |
compileFiles(java.util.Collection javafiles)
Compiles with javac the 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. |
java.util.Collection |
generateJormFiles(java.util.Collection c)
Generates .files for all meta object specified in the Collection parameter. |
JormCompilerConfigurator |
getCompilerConfigurator()
It retrieves the CompilerParameter associated to the compiler |
JormCompilerParameter |
getCompilerParameter()
It retrieves the CompilerParameter associated to the compiler |
Manager |
getMIManager()
Retrieves the MIanager instance. |
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 |
setMIManager(Manager manager)
Assignes the Meta info manager |
void |
setupGenerator()
|
void |
setupLogger()
It assigns a LoggerFactory and a Logger if it is not already done. |
void |
setupMIManager()
|
void |
setupParser()
|
void |
setupVerifier()
|
void |
setupWriter()
|
void |
verifyMetaInfo(java.util.Collection mos)
Verifies if the metainformation is in a clean state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Logger logger
protected LoggerFactory loggerFactory
protected Manager manager
protected Parser parser
protected Verifier verifier
protected Generator generator
protected Writer writer
protected JormCompilerParameter compilerParameter
protected JormCompilerConfigurator compilerConfigurator
Constructor Detail |
public JormCompiler()
public JormCompiler(JormCompilerParameter cp, JormCompilerConfigurator cc)
Method Detail |
public JormCompilerParameter getCompilerParameter()
public JormCompilerConfigurator getCompilerConfigurator()
public void setupLogger() throws PException
PException
public void setupMIManager() throws PException
PException
public void setupParser() throws PException
PException
public void setupVerifier() throws PException
PException
public void setupGenerator() throws PException
PException
public void process() throws PException
PException
public java.util.Collection parseFiles(java.util.Collection fns) throws PException
PException
public void verifyMetaInfo(java.util.Collection mos) throws PException
PException
public java.util.Collection generateFiles(java.util.Collection c) throws PException
c
- is the collection of meta objects
PException
public void compileFiles(java.util.Collection javafiles) throws PException
javafiles
- All java files to be compiled with javac.
PException
public Manager getMIManager()
public void setMIManager(Manager manager)
public void setupWriter() throws PException
PException
public java.util.Collection generateJormFiles(java.util.Collection c) throws PException
c
- is the collection of meta objects
PException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |