示例#1
0
 public ResolvedEntry resolve(SootClass clazz) {
   while (clazz != null) {
     for (SootMethod m : clazz.getMethods()) {
       if (m.getName().equals(name) && desc.equals(Types.getDescriptor(m))) {
         return new ResolvedEntry(this, m);
       }
     }
     clazz = clazz.hasSuperclass() ? clazz.getSuperclass() : null;
   }
   return null;
 }
示例#2
0
 public Entry getEntry(SootMethod method) {
   if (!Modifier.isPublic(method.getModifiers())) {
     return null;
   }
   return findEntry(method.getName(), Types.getDescriptor(method));
 }
示例#3
0
 Entry(int index, SootMethod method) {
   this(index, method.getName(), Types.getDescriptor(method));
 }