|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectimplementations.JavaImplementationGenerator
implementations.ConcernJImplementationGenerator
implementations.ConcernJInheritance
Implementation generator plugin class for implementing an Inheritance composite in ConcernJ.
Constructor Summary | |
ConcernJInheritance()
Constructs a ConcernJInheritance |
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 |
applyToRealm(UniqueRealm realm)
Applies the implementation generator to a UniqueRealm. |
protected void |
checkRoles()
Checks the composite roles for existence. |
protected java.util.Collection |
createFiltermodulesDecl(java.lang.String target)
Creates the filtermodules declarations for use in the superimposition block. |
protected java.lang.String |
createFilterRule(Concept concept)
Creates a filter rule from the given concept. |
protected java.util.Collection |
createFilterRules(java.util.Collection parents)
Creates a collection of filter rules given a collection of class concepts. |
protected java.util.Collection |
createInputFilters(java.util.Collection parents)
Creates the input filters for inheritance. |
protected java.lang.String |
createInternal(Concept concept)
Creates an internal declaration from the given concept. |
protected java.util.Collection |
createInternals(java.util.Collection classes)
Creates a collection of internal declarations given a collection of class concepts. |
protected java.lang.String |
createSelector(java.util.Collection concepts)
Creates a selector declaration for use in the superimposition block. |
protected java.util.Collection |
createSelectors(java.util.Collection concepts)
Creates a collection of selector declarations for use in the superimposition block. |
protected CompositeRole |
getChildRole()
Retrieves the child role of the composite. |
protected CompositeRole |
getParentRole()
Retrieves the parent role of the composite. |
protected java.lang.String |
getSelectorName()
Returns the selector name based on 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 ConcernJInheritance()
Method Detail |
protected CompositeRole getParentRole()
protected CompositeRole getChildRole()
protected void checkRoles() throws CoComposeException
CoComposeException
- if a required role does not exist.protected java.lang.String createInternal(Concept concept)
concept
- The concept to create the internal declaration for.
protected java.lang.String createFilterRule(Concept concept)
concept
- The concept to create the filter rule for.
protected java.util.Collection createInternals(java.util.Collection classes) throws CoComposeException
classes
- The collection of class concepts.
CoComposeException
protected java.util.Collection createFilterRules(java.util.Collection parents) throws CoComposeException
parents
- The collection of parent class concepts.
CoComposeException
protected java.util.Collection createInputFilters(java.util.Collection parents) throws CoComposeException
parents
- The parent class concepts.
CoComposeException
protected java.util.Collection createFiltermodulesDecl(java.lang.String target)
target
- The target identifier of the superimposition.
protected java.lang.String getSelectorName()
protected java.lang.String createSelector(java.util.Collection concepts)
concepts
- The collection of concepts to put in the selector.
protected java.util.Collection createSelectors(java.util.Collection concepts)
concepts
- The collection of concepts to put in the selector.
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 applyToRealm(UniqueRealm realm) throws CoComposeException
realm
- The unique realm.
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 |