|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEDU.utwente.CoCompose.lang.ModelVisitor
translate.JavaFormsPostproc
Applies post-processing for Java after the concept forms have been determined.
Field Summary | |
protected java.lang.String |
lang
Target language for this post-processor. |
Fields inherited from class EDU.utwente.CoCompose.lang.ModelVisitor |
log |
Constructor Summary | |
JavaFormsPostproc()
Constructs a JavaFormsPostproc. |
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. |
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 |
Field Detail |
protected java.lang.String lang
Constructor Detail |
public JavaFormsPostproc()
Method Detail |
protected java.lang.String lcfirst(java.lang.String str)
str
- The string to manipulate.protected java.lang.String ucfirst(java.lang.String str)
str
- The string to manipulate.public void visitModel(Model model) throws CoComposeException
visitModel
in class ModelVisitor
model
- The model to visit.
CoComposeException
- if visiting operation failed.public void visitConcept(Concept concept) throws CoComposeException
visitConcept
in class ModelVisitor
concept
- The concept to adapt the name of.
CoComposeException
- if the concept's name could not be adapted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |