Static Construction of Control Flow Graph for Aspect-Oriented Programs
- Author
- FengBin
- Advisor
- RaoRuoZuo , ZhaoJianJun
- School
- Shanghai Jiaotong University
- Major
- Computer Software and Theory
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 152
- Citations
- 0
Abstract
Aspect-oriented programming (Aspect-Oriented Programming, AOP) is a new programming method , its core is designed to overcome the limitations of object-oriented programming in the abstract modeling will be scattered in the various modules in the system design separating crosscutting concerns (crosscutting concerns) , and abstract separate programming module or component , the modularization of crosscutting concerns , so that the system has better modularity , maintainability and scalability . However , the special structure of the AOP package crosscutting concerns with object-oriented (Object-Oriented) program has a very different , which brought great difficulties for the analysis and understanding of the AOP program . At the same time , many of the object-oriented program analysis methods are no longer suitable for aspect-oriented program , With the extensive application of AOP and practice of software engineering practices have an urgent need for a program analysis with AOP techniques corresponding methods to support testing and maintenance of aspect-oriented program . In this paper, the actual demand , by analyzing the special structure of AOP program , proposed the use of static analysis for AspectJ programs build the control flow graph . The control flow graph generation method based on the AspectJ compiler abstract syntax tree (Abstract Syntax Tree, AST) , first of all aspects of code constructs control flow graph framework , and then through a special interwoven link
Table of contents
Summary 4-6
ABSTRACT 6-11
first chapter 11-18
1.1 Background 11-13 < br /> 1.2 Research Significance the 13-14
1.3 Research 14-15
1.4 paper work 15-16
1.5 this article organizational structure 16-18
second chapter of static constructor the AOP program control flow graph features 18-32
2.1 static program analysis 18-19 <br / > 2.2 AOP Overview 19-22
2.2.1 AspectJ Overview the 20-21 2.2.2 AspectJ weaving
achieve 21-22
2.3 control flow map defined 22-24
2.3.1 program-based high-level control flow graph 23-24
2.4 AOP program control flow impact 24-26
the problems faced by the 2.5 static constructor AOP program control flow graph 26-31
2.6 Chapter Summary 31-32
Chapter AOP program process control flow graph constructed 32-47
3.1 process control flow analysis 32-33
3.2 Basic statements control the flow of building 33-38
3.3 aspect-oriented elements to control the flow of the building 38-46
3.3.1 inter-type processing 38
3.3.2 advice of processing 38-42
3.3.3 advice exception handling 42-43
3.3.4 build control flow of non-static entry point 43-45
3.3 the .5 on aspect common method of processing 45-46
3.4 Chapter Summary 46-47
Chapter AOP procedure control flow graph constructed 47-56
4.1 interprocedural control flow analysis 47
4.2 method call to the connection point at the process control flow between 47-48
4.3 at the point of the call control the stream build 48-55
the 4.3.1 method invocation Fig 48-49 the
the 4.3.2 method call graph structure 49-55
4.4 Chapter Summary 55-56
Chapter AOP program static analysis tool for the design and realization of 56-81
5.1 AspectJ abstract syntax tree 57-60 < br /> 5.1.1 JDT abstract syntax tree the 57-59 5.1.2 AspectJ extension
abstract syntax trees 59-60
5.2 control flow graph model design 60-63
5.2.1 Graph Model Design 60
5.2.2 control flow graph model design 60-63
5.3 pointcut matches achieve 63-65
5.4 advice control flow frame generation and weaving 65-68
5.5 CFG generator design 68-69
5.6 2 AspectJ benchmark test 75-80
5.8 Chapter Summary 80-81
Chapter VI Full Summary 81-84
6.1 The main conclusions and summary of the work the 81-82
6.2 Research Prospects 82-84
Reference 84-89
Appendix 89-103
Appendix 1: process control flow graph generation algorithm 89-93
Appendix 2: Bean benchmark program CFG generated data 93-103
Acknowledgements 103-104
papers have been published during the master's degree 104
Related dissertations
- Design and Implementation of Testing Aspects Interaction Tool for Aspect-Oriented Programs
- Study and Implementation of Pipa and Its Runtime Assertion Checking Compiler
- Research on Monitoring Software Properties Based on AOP
- Research on Aspect-Oriented Refactoring
- AOP Implementation Research and Its Application for a Bank System
- Design and Development of a High-speed Heavy-load Palletizing Robot
- The Design and Analysis of Octahedral Module Deployable Mast
- Research on Mechanical Properties Of the Elastic Body of a Six-Axis Force Sensor Based on Strain Gauge
- Compiler-directed Static Analysis and Code Transformation
- Static Security Detection of C Applications
- Design and Implementation of Uniform Interface Platform System on AOP/IoC in the Telecommunications Industry
- A Study of Static Malicious Code Detection Method Based on Opcode Sequneces
- The Research of Exploiting Software Security Vulnerabilities Based on Android Platforms
- The Finite Element Analysis and Optimization of the Key Components of FP2500A Type Stack-Turning Machine for Organic Fertilizer
- Design and Analysis of PF1In-cryostat-feeder Support for ITER Poloidal Field
- Research on Steel Structure Optimization and Dynamic Characteristics of HZS240Concrete Mixing Station
- Mechanical Performance Analysis of Semi-rigid Steel Frames Filled Profild Steel Plate Wall
- Large Steel Structure Natural Draft Cooling Tower of Force Analysis
- The Wind Resistance Study of the Steel Frame Structural Main Factory Building of Large Thermal Power Plant
- The Analysis of the Structure Stability of Zhongding International Mansion