26 March 2024 0 3K Report

I want to get all the APIs called in a Java method. I tried to use javalang to parse codes into an AST, but I came across 2 problems

  • I cannot get the package name and class name of APIs
  • Some APIs are missing
  • Take the picture I uploaded for example.

  • I want to get java.io.BufferedInputStream.read, but I only get bis.read
  • I want to get java.io.BufferedInputStream.new and java.io.ByteArrayOutputStream.new, but they are missing.
  • More Lisa Li's questions See All
    Similar questions and discussions