|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectimplementations.JavaImplementationGenerator
implementations.JavaOverrides
Implementation generator plugin class for implementing a Overrides composite in Java.
Constructor Summary | |
JavaOverrides()
Constructs a JavaOverrides |
Method Summary | |
void |
apply(ImplementationGenerator implementation,
GenerateImplementationVisitor generateImpl)
Applies the implementation generator. |
protected void |
applyPerNewMethod()
Applies the implementation generator for each NewMethod concept. |
protected void |
applyToNewMethod(Concept newMethod,
java.util.Collection oldMethods)
Applies the implementation generator to an NewMethod concept. |
protected void |
checkOldMethodsCount(java.util.Collection oldMethods)
Checks whether the amount of OldMethod concepts doesn't exceed 1. |
protected void |
checkRoles()
Checks the composite roles for existence. |
protected CompositeRole |
getNewMethodRole()
Retrieves the NewMethod role of the composite. |
protected CompositeRole |
getOldMethodRole()
Retrieves the OldMethod role of the composite. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaOverrides()
Method Detail |
protected CompositeRole getOldMethodRole()
protected CompositeRole getNewMethodRole()
protected void checkRoles() throws CoComposeException
CoComposeException
- if a required role does not exist.protected void checkOldMethodsCount(java.util.Collection oldMethods) throws CoComposeException
oldMethods
- The collection of OldMethod concepts.
CoComposeException
- if the amount exceeds 1.protected void applyPerNewMethod() throws CoComposeException
CoComposeException
- if generating implementation failed.protected void applyToNewMethod(Concept newMethod, java.util.Collection oldMethods) throws CoComposeException
newMethod
- The concept to apply the role part for.oldMethods
- The set of oldMethod concepts.
CoComposeException
- if generating implementation failed.public void apply(ImplementationGenerator implementation, GenerateImplementationVisitor generateImpl) throws CoComposeException
apply
in interface ImplementationGeneratorI
apply
in class JavaImplementationGenerator
implementation
- The implementation generator to apply.generateImpl
- The language specific code generation operation
visitor.
CoComposeException
- if generating implementation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |