org.objectweb.jonathan.tools.compilers
Class AssemblageCompiler
java.lang.Object
org.objectweb.jonathan.tools.compilers.AssemblageCompiler
- All Implemented Interfaces:
- TagCompiler
public class AssemblageCompiler
- extends java.lang.Object
- implements TagCompiler
XML Assemblage tag to runtime Assemblage component java code compiler.
Used by Kcf2java
through its getTagCompiler()
method to write Assemblage tags' java code compilation.
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 ASSEMBLAGE element to the java code
creating its corresponding assemblage runtime component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssemblageCompiler
public AssemblageCompiler()
writeComponent
public 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
ASSEMBLAGE
element to the java code
creating its corresponding assemblage runtime component.
- Specified by:
writeComponent
in interface TagCompiler
- Parameters:
_current_component
- ASSEMBLAGE
tag to be decoded_element_name
- the assemblage's element name_configuration_var_name
- the assemblage's configuration's
variable name_writer
- where the property assemblage code is written_configuration_name
- the assemblage's configuration's
namereturn
- the corresponding assemblage component code variable
name
- Returns:
- the name of the variable holding the component in the Java code
- Throws:
java.io.IOException
- if something goes wrong.