translate
Class JAsCoImplementationVisitor

java.lang.Object
  |
  +--EDU.utwente.CoCompose.lang.ModelVisitor
        |
        +--EDU.utwente.CoCompose.translate.GenerateImplementationVisitor
              |
              +--translate.JavaImplementationVisitor
                    |
                    +--translate.JAsCoImplementationVisitor
All Implemented Interfaces:
java.lang.Runnable

public class JAsCoImplementationVisitor
extends JavaImplementationVisitor

Generates JAsCo language implementation for a CoCompose model.

Version:
0.1.18, 22 November 2003
Author:
Dennis Wagelaar

Fields inherited from class EDU.utwente.CoCompose.translate.GenerateImplementationVisitor
constraintCheck, Indent, OUTPUT_DIR
 
Fields inherited from class EDU.utwente.CoCompose.lang.ModelVisitor
log
 
Constructor Summary
JAsCoImplementationVisitor()
          Constructs a JAsCoImplementationVisitor.
 
Method Summary
protected  void conceptAsAspectBean(Concept concept, java.lang.String form)
          Implements the concept as an AspectBean.
protected  void conceptAsClass(Concept concept, java.lang.String form)
          Implements the concept as a Class.
protected  void conceptAsConnector(Concept concept, java.lang.String form)
          Implements the concept as a Connector.
protected  void conceptAsHook(Concept concept, java.lang.String form)
          Implements the concept as a Hook.
protected  void conceptAsInterface(Concept concept)
          Implements the concept as an Interface.
 java.lang.String getTargetLanguage()
          Returns the target language this GenerateImplementationVisitor supports.
 void visitConcept(Concept concept)
          Generates implementation for a Concept object.
protected  void writeImplementation(Model model, java.lang.String outdir)
          Writes the implementation of the model.
 
Methods inherited from class translate.JavaImplementationVisitor
conceptAsConstructorMethod, conceptAsMethod, conceptAsOther, getImplementation, getImplPart, getPointerAttribute, moveImports, removeExtraNewlines, substVars, visitModel, weavePointers, weavePointers
 
Methods inherited from class EDU.utwente.CoCompose.translate.GenerateImplementationVisitor
dumpImplementation, getForms, getImpl, getImpl, getImplementation, getImpls, indent, removeForm, setForm, setImpl, setImpl, visitComposite, visitImplementation, visitImplementationGenerator, writeFile
 
Methods inherited from class EDU.utwente.CoCompose.lang.ModelVisitor
getUpdate, run, setErrorReporter, setLogger, setUpdate, startModel, visitAbstractConcept, visitCompositePartConcept, visitCompositeRole, visitConstrainedConcept, visitImplementationRolePart, visitLink, visitPublishedConcept, visitSolutionPattern, visitSolutionRole
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAsCoImplementationVisitor

public JAsCoImplementationVisitor()
Constructs a JAsCoImplementationVisitor.
Method Detail

conceptAsClass

protected void conceptAsClass(Concept concept,
                              java.lang.String form)
Implements the concept as a Class.
Overrides:
conceptAsClass in class JavaImplementationVisitor
Parameters:
concept - The concept to implement.
form - The exact concept form.

conceptAsInterface

protected void conceptAsInterface(Concept concept)
Implements the concept as an Interface.
Overrides:
conceptAsInterface in class JavaImplementationVisitor
Parameters:
concept - The concept to implement.

conceptAsAspectBean

protected void conceptAsAspectBean(Concept concept,
                                   java.lang.String form)
Implements the concept as an AspectBean.
Parameters:
concept - The concept to implement.
form - The exact concept form.

conceptAsHook

protected void conceptAsHook(Concept concept,
                             java.lang.String form)
Implements the concept as a Hook.
Parameters:
concept - The concept to implement.
form - The exact concept form.

conceptAsConnector

protected void conceptAsConnector(Concept concept,
                                  java.lang.String form)
Implements the concept as a Connector.
Parameters:
concept - The concept to implement.
form - The exact concept form.

writeImplementation

protected void writeImplementation(Model model,
                                   java.lang.String outdir)
                            throws CoComposeException
Writes the implementation of the model.
Overrides:
writeImplementation in class JavaImplementationVisitor
Parameters:
model - The model to write the implementation for.
outdir - The directory to save the implementation files.
Throws:
CoComposeException - if writing the implementation failed.

getTargetLanguage

public java.lang.String getTargetLanguage()
Returns the target language this GenerateImplementationVisitor supports.
Overrides:
getTargetLanguage in class JavaImplementationVisitor
Returns:
The target language.

visitConcept

public void visitConcept(Concept concept)
                  throws CoComposeException
Generates implementation for a Concept object.
Overrides:
visitConcept in class JavaImplementationVisitor
Parameters:
concept - The concept to visit.
Throws:
CoComposeException - if generating implementation failed.