org.ow2.mind.adl
Class DefinitionIncSourceGenerator

java.lang.Object
  extended by org.ow2.mind.st.AbstractStringTemplateProcessor
      extended by org.ow2.mind.adl.AbstractSourceGenerator
          extended by org.ow2.mind.adl.DefinitionIncSourceGenerator
All Implemented Interfaces:
DefinitionSourceGenerator, VoidVisitor<org.objectweb.fractal.adl.Definition>
Direct Known Subclasses:
DefinitionMacroSourceGenerator

public class DefinitionIncSourceGenerator
extends AbstractSourceGenerator
implements DefinitionSourceGenerator

DefinitionSourceGenerator component that generated ".inc" files using the "st.definitions.implementations.Component" template.


Field Summary
static java.lang.String DEFAULT_TEMPLATE
          The default templateGroupName used by this class.
protected static java.lang.String FILE_EXT
           
protected  IDLLoader idlLoaderItf
           
static java.lang.String TEMPLATE_NAME
          The name to be used to inject the templateGroupName used by this class.
 
Fields inherited from class org.ow2.mind.adl.AbstractSourceGenerator
depLogger, inputResourceLocatorItf, outputFileLocatorItf
 
Fields inherited from class org.ow2.mind.st.AbstractStringTemplateProcessor
templateGroupLoaderItf, templateGroupName
 
Constructor Summary
protected DefinitionIncSourceGenerator(java.lang.String templateGroupName)
           
 
Method Summary
static java.lang.String getIncFileName(org.objectweb.fractal.adl.Definition definition)
          A static method that returns the name of the file that is generated by this component for the given Definition;
protected  java.lang.String getOutputFileName(org.objectweb.fractal.adl.Definition definition)
           
 void visit(org.objectweb.fractal.adl.Definition definition, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 
Methods inherited from class org.ow2.mind.adl.AbstractSourceGenerator
regenerate
 
Methods inherited from class org.ow2.mind.st.AbstractStringTemplateProcessor
getInstanceOf, getTemplateLexer, initTemplateGroup, registerCustomRenderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

idlLoaderItf

@Inject
protected IDLLoader idlLoaderItf
Constructor Detail

DefinitionIncSourceGenerator

@Inject
protected DefinitionIncSourceGenerator(java.lang.String templateGroupName)
Method Detail

getIncFileName

public static java.lang.String getIncFileName(org.objectweb.fractal.adl.Definition definition)
A static method that returns the name of the file that is generated by this component for the given Definition;

Parameters:
definition - a Definition node.
Returns:
the name of the file that is generated by this component for the given Definition;

visit

public void visit(org.objectweb.fractal.adl.Definition definition,
                  java.util.Map<java.lang.Object,java.lang.Object> context)
           throws org.objectweb.fractal.adl.ADLException
Specified by:
visit in interface VoidVisitor<org.objectweb.fractal.adl.Definition>
Throws:
org.objectweb.fractal.adl.ADLException

getOutputFileName

protected java.lang.String getOutputFileName(org.objectweb.fractal.adl.Definition definition)


Copyright © 2009-2011 OW2. All Rights Reserved.