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