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 13

AspectJ 16

Translating Fred. 23

Translating Fred to a Graphical Notation. 23

Translating the Factorial Example. 24

Translating the String Example. 26

Translating Fred to AspectJ 29

Conclusion. 31

Translating Between Aspectj and Demeter 33

Join Point Model VS. Traversal Model of Programming. 40

DAJ: Demeter integrated with AspectJ 46

Compilation Process. 46

Traversal Specification Following DJ and AspectJ Syntax. 48

Conclusion. 53

Performance Analysis of DAJ 54

Performance Measurement Methodology. 54

Experimental Results and Analysis. 59

Conclusion. 60

The Four Graph Model of Programs (4GMP) 61

Four Graph Model of Programs. 61

Factorizational Concerns. 64

Organizational Concerns. 65

Concern Relationship Diagram.. 67

AspectJ Analysis. 69

DemeterJ Analysis. 73

Conclusion. 77

Summary and Future Direction. 78

Bibliography. 80


Table of Figures

Figure 1: Factorial Example in Fred. 1

Figure 2: Factorial Example in AspectJ 2

Figure 3: Pointcut Exposing the Caller