Is there a way to get count of number methods used in a jar file

前端 未结 12 2215
粉色の甜心
粉色の甜心 2020-11-28 03:20

Can i have the count of all methods used in a jar file . My APK uses certain external JARS and there are a number of classes around hundred to be precise.

I have use

12条回答
  •  天涯浪人
    2020-11-28 03:45

    With the command line, after having unzipped the JAR, something like this should work :

    for f in *.class; do javap -c $(basename -s .class $f) | grep invoke | sed 's/.*Method\(.*\)/\1/g'; done | wc -l
    

提交回复
热议问题