org.ow2.mind.adl
Class BasicInstanceSourceGenerator
java.lang.Object
org.ow2.mind.st.AbstractStringTemplateProcessor
org.ow2.mind.adl.AbstractSourceGenerator
org.ow2.mind.adl.BasicInstanceSourceGenerator
- All Implemented Interfaces:
- InstanceSourceGenerator, VoidVisitor<InstancesDescriptor>
public class BasicInstanceSourceGenerator
- extends AbstractSourceGenerator
- implements InstanceSourceGenerator
InstanceSourceGenerator component that generated ".c"
files using the "st.instances.Component" template.
|
Field Summary |
static java.lang.String |
DEFAULT_TEMPLATE
The default templateGroupName used by this class. |
protected static java.lang.String |
FILE_EXT
|
static java.lang.String |
TEMPLATE_NAME
The name to be used to inject the templateGroupName used by this class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEMPLATE_NAME
public static final java.lang.String TEMPLATE_NAME
- The name to be used to inject the templateGroupName used by this class.
- See Also:
- Constant Field Values
DEFAULT_TEMPLATE
public static final java.lang.String DEFAULT_TEMPLATE
- The default templateGroupName used by this class.
- See Also:
- Constant Field Values
FILE_EXT
protected static final java.lang.String FILE_EXT
- See Also:
- Constant Field Values
BasicInstanceSourceGenerator
@Inject
protected BasicInstanceSourceGenerator(java.lang.String templateGroupName)
getInstancesFileName
public static java.lang.String getInstancesFileName(InstancesDescriptor instanceDesc)
- A static method that returns the name of the file that is generated by this
component for the given
InstancesDescriptor;
- Parameters:
instanceDesc - an InstancesDescriptor node.
- Returns:
- the name of the file that is generated by this component for the
given
Definition;
visit
public void visit(InstancesDescriptor instanceDesc,
java.util.Map<java.lang.Object,java.lang.Object> context)
throws org.objectweb.fractal.adl.ADLException
- Specified by:
visit in interface VoidVisitor<InstancesDescriptor>
- Throws:
org.objectweb.fractal.adl.ADLException
addDefinitions
protected void addDefinitions(ComponentGraph graph,
java.util.Set<org.objectweb.fractal.adl.Definition> definitions)
Copyright © 2009-2011 OW2. All Rights Reserved.