org.objectweb.jonathan.tools.compilers
Interface TagCompiler
- 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.
String | writeComponent(XMLElement _current_component, String _element_name, String _configuration_var_name, Writer _writer, String _configuration_name) - Translates a XML element to the java code
creating its corresponding runtime component(s).
|
writeComponent
public String writeComponent(XMLElement _current_component,
String _element_name,
String _configuration_var_name,
Writer _writer,
String _configuration_name)
throws IOException
Translates a XML element to the java code
creating its corresponding runtime component(s).
_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
- the name of the variable holding the component in the Java code