|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEDU.utwente.CoCompose.lang.ModelVisitor
EDU.utwente.CoCompose.translate.GenerateImplementationVisitor
translate.JavaImplementationVisitor
translate.ConcernJImplementationVisitor
Generates ConcernJ implementation for a CoCompose model.
Field Summary |
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 | |
ConcernJImplementationVisitor()
Constructs a ConcernJImplementationVisitor. |
Method Summary | |
protected void |
conceptAsConcern(Concept concept)
Implements the concept as a Concern. |
protected void |
conceptAsCondition(Concept concept)
Implements the concept as a Condition. |
protected void |
conceptAsFiltermodule(Concept concept)
Implements the concept as a Filtermodule. |
protected void |
conceptAsMethod(Concept concept)
Implements the concept as a Method. |
protected java.lang.String |
getImplPart(java.lang.String attr,
java.lang.String impl)
Retrieves the right part from the implementation. |
protected java.lang.String |
getPointerAttribute(java.lang.String attr,
java.lang.String impl)
Gets the pointer attribute part of the implementation for the given entity. |
java.lang.String |
getTargetLanguage()
Returns the target language this GenerateImplementationVisitor supports. |
protected void |
moveImports()
Moves the import declarations in the implementations to the right place. |
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 |
conceptAsClass, conceptAsConstructorMethod, conceptAsInterface, conceptAsMethod, conceptAsOther, getImplementation, 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 |
public ConcernJImplementationVisitor()
Method Detail |
protected void conceptAsConcern(Concept concept)
concept
- The concept to implement.protected void conceptAsMethod(Concept concept)
concept
- The concept to implement.protected void conceptAsCondition(Concept concept)
concept
- The concept to implement.protected void conceptAsFiltermodule(Concept concept)
concept
- The concept to implement.protected java.lang.String getImplPart(java.lang.String attr, java.lang.String impl) throws CoComposeException
getImplPart
in class JavaImplementationVisitor
attr
- The pointer attributes, if any.impl
- The current implementation.
CoComposeException
- if the part could not be found.protected java.lang.String getPointerAttribute(java.lang.String attr, java.lang.String impl) throws CoComposeException
getPointerAttribute
in class JavaImplementationVisitor
attr
- The pointer attribute identifier.impl
- The implementation to get the attribute part for.
CoComposeException
- if the part could not be found.protected void moveImports()
moveImports
in class JavaImplementationVisitor
protected void writeImplementation(Model model, java.lang.String outdir) throws CoComposeException
writeImplementation
in class JavaImplementationVisitor
model
- The model to write the implementation for.outdir
- The directory to save the implementation files.
CoComposeException
- if writing the implementation failed.public java.lang.String getTargetLanguage()
getTargetLanguage
in class JavaImplementationVisitor
public void visitConcept(Concept concept) throws CoComposeException
visitConcept
in class JavaImplementationVisitor
concept
- The concept to visit.
CoComposeException
- if generating implementation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |