Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以通过 获得一个类的超类SootClass.getSuperclass(),但我不知道如何获得它的子类。
SootClass.getSuperclass()
我需要先加载子类吗?没有getSubclass()功能。谢谢!
getSubclass()
您需要使用 Scene.v().getHierarchy() 或 Scene.v().getFastHierarchy()
你不能简单地获得“子类”,因为可以有很多这样的类,子类化一个特定的类或实现某个接口。
我想,你必须遍历场景中的所有类,并为每个这样的类检查它的超类是否是给定的类/接口。