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