org.ow2.mind.adl
Class ImplementationHeaderSourceGenerator

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

public class ImplementationHeaderSourceGenerator
extends AbstractSourceGenerator
implements DefinitionSourceGenerator


Field Summary
 
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 ImplementationHeaderSourceGenerator()
           
 
Method Summary
protected  java.lang.String getFileContent(org.objectweb.fractal.adl.Definition definition)
           
static java.lang.String getImplHeaderFileName(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;
static java.lang.String getImplHeaderFileName(org.objectweb.fractal.adl.Definition definition, int srcIndex)
          A static method that returns the name of the file that is generated by this component for the given Definition and source index
 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
 

Constructor Detail

ImplementationHeaderSourceGenerator

protected ImplementationHeaderSourceGenerator()
Method Detail

getImplHeaderFileName

public static java.lang.String getImplHeaderFileName(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;

getImplHeaderFileName

public static java.lang.String getImplHeaderFileName(org.objectweb.fractal.adl.Definition definition,
                                                     int srcIndex)
A static method that returns the name of the file that is generated by this component for the given Definition and source index

Parameters:
definition - a Definition node.
srcIndex - the index of the source 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

getFileContent

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


Copyright © 2009-2011 OW2. All Rights Reserved.