translate
Class JavaFormsPostproc
java.lang.Object
|
+--EDU.utwente.CoCompose.lang.ModelVisitor
|
+--translate.JavaFormsPostproc
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- ConcernJFormsPostproc, JAsCoFormsPostproc, SEESCOAFormsPostproc
- public class JavaFormsPostproc
- extends ModelVisitor
Applies post-processing for Java after the concept forms have been
determined.
- Version:
- 0.1.09, 5 June 2003
- Author:
- Dennis Wagelaar
Field Summary |
protected java.lang.String |
lang
Target language for this post-processor. |
Method Summary |
protected java.lang.String |
lcfirst(java.lang.String str)
Changes the first character of the string to lowercase. |
protected java.lang.String |
ucfirst(java.lang.String str)
Changes the first character of the string to uppercase. |
void |
visitConcept(Concept concept)
Adapts the concept's name to the Java naming convention corresponding
to the concept's form.
PRE: The concept's form must have been determined. |
void |
visitModel(Model model)
Visits a Model object. |
Methods inherited from class EDU.utwente.CoCompose.lang.ModelVisitor |
getUpdate, run, setErrorReporter, setLogger, setUpdate, startModel, visitAbstractConcept, visitComposite, visitCompositePartConcept, visitCompositeRole, visitConstrainedConcept, visitImplementation, visitImplementationGenerator, visitImplementationRolePart, visitLink, visitPublishedConcept, visitSolutionPattern, visitSolutionRole |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lang
protected java.lang.String lang
- Target language for this post-processor.
JavaFormsPostproc
public JavaFormsPostproc()
- Constructs a JavaFormsPostproc.
lcfirst
protected java.lang.String lcfirst(java.lang.String str)
- Changes the first character of the string to lowercase.
- Parameters:
str
- The string to manipulate.
ucfirst
protected java.lang.String ucfirst(java.lang.String str)
- Changes the first character of the string to uppercase.
- Parameters:
str
- The string to manipulate.
visitModel
public void visitModel(Model model)
throws CoComposeException
- Visits a Model object.
- Overrides:
visitModel
in class ModelVisitor
- Parameters:
model
- The model to visit.- Throws:
CoComposeException
- if visiting operation failed.
visitConcept
public void visitConcept(Concept concept)
throws CoComposeException
- Adapts the concept's name to the Java naming convention corresponding
to the concept's form.
PRE: The concept's form must have been determined.
- Overrides:
visitConcept
in class ModelVisitor
- Parameters:
concept
- The concept to adapt the name of.- Throws:
CoComposeException
- if the concept's name could not be adapted.