Skip to content
Success

Changes

Summary

  1. Core: - Altered AnalyzeInheritanceTreesTask to skip such sum types which have the root class of the viewed inheritance tree as element as these don't have to be instantiated explicitly. - Altered ReferencedConstructors check to replace sums that do not match the criteria above to be replace by the sum type element mentioned in the corresponding constructor as a sum type itself cannot be instantiated but a constructor call to one of its elements must exist if the caller is not part of the sum type itself. Generator: - Sorted the ConstructorCallGenerationTask into the generation procedure. - Moved the generation of $super/setThis-methods and constructors to the ConstructorCallGenerationTask and removed their counterparts from the OperationAttributeTransformer and the GenInterfaceWithImplClass. - Implemented the generation of parameterized $super-Methods per constructor. - Fixed test cases that expected generated parts after the OperationAttributeTransformer which are not being generated by it anymore.
Revision 4117 by hfi413te:
Core:  - Altered AnalyzeInheritanceTreesTask to skip such sum types which have the root class of the viewed inheritance tree as element as these don't have to be instantiated explicitly.
- Altered ReferencedConstructors check to replace sums that do not match the criteria above to be replace by the sum type element mentioned in the corresponding constructor as a sum type itself cannot be instantiated but a constructor call to one of its elements must exist if the caller is not part of the sum type itself.

Generator: - Sorted the ConstructorCallGenerationTask into the generation procedure.
- Moved the generation of $super/setThis-methods and constructors to the ConstructorCallGenerationTask and removed their counterparts from the OperationAttributeTransformer and the GenInterfaceWithImplClass.
- Implemented the generation of parameterized $super-Methods per constructor.
- Fixed test cases that expected generated parts after the OperationAttributeTransformer which are not being generated by it anymore.
Change TypePath in RepositoryPath in Workspace
The file was modified/trunk/Workspace/Core/src/main/java/de/fhdw/wtf/walker/tasks/AnalyzeInheritanceTreesTask.javaCore/src/main/java/de/fhdw/wtf/walker/tasks/AnalyzeInheritanceTreesTask.java
The file was modified/trunk/Workspace/Core/src/main/java/de/fhdw/wtf/walker/tasks/ReferencedConstructorsCheck.javaCore/src/main/java/de/fhdw/wtf/walker/tasks/ReferencedConstructorsCheck.java
The file was modified/trunk/Workspace/Generator/src/main/java/de/fhdw/wtf/facade/ModelManager.javaN/A
The file was modified/trunk/Workspace/Generator/src/main/java/de/fhdw/wtf/generator/java/generatorModel/GenInterfaceWithClassImplClass.javaN/A
The file was modified/trunk/Workspace/Generator/src/main/java/de/fhdw/wtf/generator/transformer/transformers/classTransformer/ConstructorCallGenerationTask.javaN/A
The file was modified/trunk/Workspace/Generator/src/main/java/de/fhdw/wtf/generator/transformer/transformers/classTransformer/InheritanceTransformer.javaN/A
The file was modified/trunk/Workspace/Generator/src/main/java/de/fhdw/wtf/generator/transformer/transformers/classTransformer/OperationAttributeTransformer.javaN/A
The file was modified/trunk/Workspace/Generator/src/test/java/clipper/LinkToGenClassTest.javaN/A
The file was modified/trunk/Workspace/Generator/src/test/java/transformers/test/TestClassTransformer.javaN/A
The file was modified/trunk/Workspace/Generator/src/test/java/transformers/test/TestInheritanceTransformer.javaN/A
The file was modified/trunk/Workspace/Generator/src/test/java/transformers/test/TestOperationAttributeTransformer.javaN/A
The file was modified/trunk/Workspace/Generator/src/test/java/transformers/test/TestTypeTransformer.javaN/A
The file was modified/trunk/Workspace/Generator/src/test/java/transformers/test/TestVisitorTypeTransformer.javaN/A