Generation of Call Graph for Java Higher Order Functions

Prathima Bedadala, D. Manasa, Lekshmi S Nair · 2020

The Lambda expression introduced in Java 8 gives a functional style to the object-oriented program. The major highlights of lambda expression include lazy evaluation, code readability, avoiding code duplication. A static call graph can be used to visualize every possible run that the program might take. Due to the recent software development using Java, the new features aintroduced in Java 8 may be explored. Hence this demands the need for the call graphs generated for such software. This paper suggests an algorithm for the construction of a call graph for the lambda constructs. A static call graph will be generated by preserving the signature of the methods. The model suggested here uses an intermediate Abstract syntax tree (AST) like representation which is further transformed and optimized into a call graph representation.

Read the paper · More papers on PaperTik