title: Compositional mining of multiple object API protocols through state abstraction.
abstract: API protocols specify correct sequences of method invocations. Despite their usefulness, API protocols are often unavailable in practice because writing them is cumbersome and error prone. Multiple object API protocols are more expressive than single object API protocols. However, the huge number of objects of typical object-oriented programs poses a major challenge to the automatic mining of multiple object API protocols: besides maintaining scalability, it is important to capture various object interactions. Current approaches utilize various heuristics to focus on small sets of methods. In this paper, we present a general, scalable, multiple object API protocols mining approach that can capture all object interactions. Our approach uses abstract field values to label object states during the mining process. We first mine single object typestates as finite state automata whose transitions are annotated with states of interacting objects before and after the execution of the corresponding method and then construct multiple object API protocols by composing these annotated single object typestates. We implement our approach for Java and evaluate it through a series of experiments.
authors.affiliation: School of Computer, National University of Defense Technology, Changsha 410073, China.
authors.forename: Ziying
authors.initials: Z
authors.lastname: Dai
authors.forename: Xiaoguang
authors.initials: X
authors.lastname: Mao
authors.forename: Yan
authors.initials: Y
authors.lastname: Lei
authors.forename: Yuhua
authors.initials: Y
authors.lastname: Qi
authors.forename: Rui
authors.initials: R
authors.lastname: Wang
authors.forename: Bin
authors.initials: B
authors.lastname: Gu
mesh_terms: D000465:Algorithms; D057225:Data Mining / Q000379:methods*; D011381:Programming Languages; D012984:Software; D012985:Software Design