|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectimplementations.JavaImplementationGenerator
implementations.JavaInheritance
Implementation generator plugin class for implementing an Inheritance composite in Java.
Constructor Summary | |
JavaInheritance()
|
Method Summary | |
void |
apply(ImplementationGenerator implementation,
GenerateImplementationVisitor generateImpl)
Applies the implementation generator. |
protected void |
applyPerChild()
Applies the implementation generator for each Child concept. |
protected void |
applyToChild(Concept child,
java.util.Collection parents)
Applies the implementation generator to a Child concept. |
protected void |
applyToChildClass(Concept child,
java.util.Collection parents)
Applies the implementation generator to a Child concept as a Class. |
protected void |
applyToChildInterface(Concept child,
java.util.Collection parents)
Applies the implementation generator to a Child concept as an Interface. |
protected void |
checkRoles()
Checks the composite roles for existence. |
protected CompositeRole |
getChildRole()
Retrieves the child role of the composite. |
protected CompositeRole |
getParentRole()
Retrieves the parent 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 JavaInheritance()
Method Detail |
protected CompositeRole getParentRole()
protected CompositeRole getChildRole()
protected void checkRoles() throws CoComposeException
CoComposeException
- if a required role does not exist.protected void applyPerChild() throws CoComposeException
CoComposeException
- if generating implementation failed.protected void applyToChild(Concept child, java.util.Collection parents) throws CoComposeException
child
- The concept to apply the role part for.parents
- The set of parent concepts.
CoComposeException
- if generating implementation failed.protected void applyToChildClass(Concept child, java.util.Collection parents) throws CoComposeException
child
- The concept to apply the role part for.parents
- The set of parent concepts.
CoComposeException
- if generating implementation failed.protected void applyToChildInterface(Concept child, java.util.Collection parents) throws CoComposeException
child
- The concept to apply the role part for.parents
- The set of parent 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 |