Aspectual Source Code Analysis with GASR

被引:0
|
作者
Fabry, Johan [1 ]
De Roover, Coen [2 ]
Jonckers, Viviane [2 ]
机构
[1] Univ Chile, PLEIAD Lab, Dept Comp Sci DCC, Santiago, Chile
[2] Vrije Univ Brussel, Software Languages Lab, Brussels, Belgium
关键词
Aspect Oriented Programming; Logic Program Querying; Aspectual Assumptions;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
To be able to modularize crosscutting concerns, aspects introduce new programming language features, often in a new language, with a specific syntax. These new features lead to new needs for source code analysis tools, resulting in the requirement for a general-purpose aspectual source code analysis tool. Ignoring this requirement has led to a nontrivial duplication of effort in the aspect-oriented software development community. This is because all code analysis efforts that we are aware of have either built ad-hoc analysis tools or were performed manually. In this paper we present GASR: a source code analysis tool in the tradition of logic program querying that reasons over ASPECTJ source code. By hooking into the IDE plugins for ASPECTJ, GASR provides a library of predicates that can be used to query aspectual source code. We demonstrate the use of GASR by automating the recognition of a number of previously identified aspectual source code assumptions. We then detect assumption instances on two well-known case studies that were manually investigated in the earlier work. In addition to finding the already known aspect assumptions, GASR encounters assumption instances that were overlooked before.
引用
收藏
页码:53 / 62
页数:10
相关论文
共 50 条
  • [31] Keynote address: QL for source code analysis
    de Moor, Oege
    Verbaere, Mathieu
    Hajiyev, Elnar
    Avgustinov, Pavel
    Ekman, Torbjoern
    Ongkingco, Neil
    Sereni, Damien
    Tibble, Julian
    SEVENTH IEEE INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION, PROCEEDINGS, 2007, : 3 - 14
  • [32] Semantic topic models for source code analysis
    Mahmoud, Anas
    Bradshaw, Gary
    EMPIRICAL SOFTWARE ENGINEERING, 2017, 22 (04) : 1965 - 2000
  • [33] FACTOR-ANALYSIS OF SOURCE CODE METRICS
    COUPAL, D
    ROBILLARD, PN
    JOURNAL OF SYSTEMS AND SOFTWARE, 1990, 12 (03) : 263 - 269
  • [34] Special issue on Source code analysis and manipulation
    Antonio, Giuliano
    Krinke, Jens
    Tonella, Paolo
    SCIENCE OF COMPUTER PROGRAMMING, 2006, 62 (03) : 205 - 208
  • [35] Delving source code with formal concept analysis
    Mens, K
    Tourwé, T
    COMPUTER LANGUAGES SYSTEMS & STRUCTURES, 2005, 31 (3-4) : 183 - 197
  • [36] Source Code Patches from Dynamic Analysis
    Orton, Indigo
    Mycroft, Alan
    PROCEEDINGS OF THE 23RD ACM INTERNATIONAL WORKSHOP ON FORMAL TECHNIQUES FOR JAVA-LIKE PROGRAMS (FTFJP '21), 2021, : 1 - 8
  • [37] Semantic topic models for source code analysis
    Anas Mahmoud
    Gary Bradshaw
    Empirical Software Engineering, 2017, 22 : 1965 - 2000
  • [38] RefactorErl - Source Code Analysis and Refactoring in Erlang
    Bozo, Istvan
    Horpacsi, Daniel
    Horvath, Zoltan
    Kitlei, Robert
    Koszegi, Judit
    Tejfel, Mate
    Toth, Melinda
    12TH SYMPOSIUM ON PROGRAMMING LANGUAGES AND SOFTWARE TOOLS, SPLST' 11, 2011, : 138 - 148
  • [39] Parallel support for source code analysis and modification
    Baxter, ID
    SCAM 2002: SECOND IEEE INTERNATIONAL WORKSHOP ON SOURCE CODE ANALYSIS MANIPULATION, PROCEEDINGS, 2002, : 3 - 14
  • [40] Statistical Unigram Analysis for Source Code Repository
    Xu, Weifeng
    Xu, Dianxiang
    El Ariss, Omar
    Liu, Yunkai
    Alatawi, Abdulrahman
    2017 IEEE THIRD INTERNATIONAL CONFERENCE ON MULTIMEDIA BIG DATA (BIGMM 2017), 2017, : 1 - 8