Example #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;
 }
Example #2
0
 public Entry getEntry(SootMethod method) {
   if (!Modifier.isPublic(method.getModifiers())) {
     return null;
   }
   return findEntry(method.getName(), Types.getDescriptor(method));
 }
Example #3
0
 Entry(int index, SootMethod method) {
   this(index, method.getName(), Types.getDescriptor(method));
 }