org.objectweb.jonathan.tools.compilers
Interface TagCompiler
- All Known Implementing Classes:
- AliasCompiler, AssemblageCompiler, AtomCompiler, ImplicitFactoryCompiler, IncludeCompiler, PropertyCompiler, SequenceCompiler
public interface TagCompiler
XML tag to runtime component java code compiler interface.
Used by Kcf2java
through its getTagCompiler()
method to dispatch component tags to java code compilation.
Has to be implemented for each runtime component specific type.
The configuration tag compiler is not needed, since Kcf2java
has its mechanism as a built-in one.
Method Summary |
java.lang.String |
writeComponent(nanoxml.XMLElement _current_component,
java.lang.String _element_name,
java.lang.String _configuration_var_name,
java.io.Writer _writer,
java.lang.String _configuration_name)
Translates a XML element to the java code
creating its corresponding runtime component(s). |
writeComponent
java.lang.String writeComponent(nanoxml.XMLElement _current_component,
java.lang.String _element_name,
java.lang.String _configuration_var_name,
java.io.Writer _writer,
java.lang.String _configuration_name)
throws java.io.IOException
- Translates a XML element to the java code
creating its corresponding runtime component(s).
- Parameters:
_current_component
- the XML tag to be compiled_element_name
- its element name_configuration_var_name
- its containing configuration
Java code variable name_writer
- where to write the translated java code_configuration_name
- the configuration absolute name
- Returns:
- the name of the variable holding the component in the Java code
- Throws:
java.io.IOException
- if something goes wrong.