Aspectual Concepts

by

John J. Sung

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

College of Computer Science

Northeastern University

2002

 

 

 

 

 

 

 

 

 

 

© Copyright

John J. Sung

jser@ccs.neu.edu


Aspectual Concepts

by

John J. Sung

 

 

A thesis submitted as part of requirements

for the degree of

 

 

Master of Science in Computer Science

School of Computer Science

Northeastern University

2002

 

 

 

 

                                 _____________________      _____________________

               Supervisor: Karl Lieberherr                       Date

 

 

 

 

                                 _____________________      _____________________

               Reader:      Mitch Wand                             Date


Table of Contents

 

Table of Contents. i

Table of Figures. iii

Acknowledgements. vi

Thesis Proposal 1

Introduction to AOP Tools. 5

Fred. 5

Demeter Concepts. 7

DemeterJ 7

DJ 12

AspectJ 15

Translating Fred. 21

Translating Fred to a Graphical Notation. 21

Translating the Factorial Example. 22

Translating the String Example. 24

Translating Fred to AspectJ 27

Conclusion. 29

Translations Between Aspectj and Demeter 31

Conclusion. 36

Join Point Model VS. Traversal Model of Programming. 37

Conclusion. 41

DAJ: Demeter integrated with AspectJ 43

Compilation Process. 43

Traversal Specification Following DJ and AspectJ Syntax. 45

Conclusion. 50

Performance Analysis of DAJ 51

Performance Measurement Methodology. 51

Experimental Results and Analysis. 56

Conclusion. 57

The Four Graph Model of Programs (4GMP) 58

Four Graph Model of Programs. 58

Factorizational Concerns. 61

Organizational Concerns. 62

Concern Relationship Diagram.. 63

AspectJ Analysis. 66

DemeterJ Analysis. 70

Conclusion. 74

Conclusion. 75

Bibliography. 77


Table of Figures

Figure 1: Factorial Example in Fred. 1