|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--implementations.JavaImplementationGenerator | +--implementations.ConcernJImplementationGenerator | +--implementations.ConcernJOverrides
Implementation generator plugin class for implementing a Overrides composite in ConcernJ.
Constructor Summary | |
ConcernJOverrides()
Constructs a ConcernJOverrides |
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. PRE: oldMethods ::= Collectio<Concept> |
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 implementations.ConcernJImplementationGenerator |
createFiltermodule, getFiltermoduleName, getRealmImplementation, insertFiltermodule, insertMethodOverrideID, insertParameters, insertReturnType, insertSuperimposition, makeFilterDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConcernJOverrides()
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 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |