Examples of declaresMethod()


Examples of soot.SootClass.declaresMethod()

      if(classNames==null || classNames.isEmpty()) {
        registerGuard(container, newInstanceInvokeStmt, "Class.newInstance() call site; Soot did not expect this site to be reached");
      } else {
        for (String clsName : classNames) {
          SootClass cls = Scene.v().getSootClass(clsName);
          if( cls.declaresMethod(sigInit) ) {
            SootMethod constructor = cls.getMethod(sigInit);
            addEdge( container, newInstanceInvokeStmt, constructor, Kind.REFL_CLASS_NEWINSTANCE );
          }
        }
      }
View Full Code Here

Examples of soot.SootClass.declaresMethod()

        SootClass source = method.getDeclaringClass();

        while (source.hasSuperclass()) {
            source = source.getSuperclass();

            if (source.declaresMethod(method.getSubSignature())) {
                SootMethod m = source.getMethod(method.getSubSignature());

                if (RequiredFileGenerator.isRequired(m)) {
                    return true;
                }
View Full Code Here

Examples of soot.SootClass.declaresMethod()

            while (methods.hasNext()) {
                SootMethod method = (SootMethod) methods.next();
                String subSignature = method.getSubSignature();

                if (source.declaresMethod(subSignature)
                        && allParents.contains(method.getDeclaringClass())) {
                    requiredMethodSet.add(source.getMethod(subSignature));
                }
            }
        }
View Full Code Here

Examples of soot.SootClass.declaresMethod()

                                while (scratchClass.hasSuperclass()) {
                                    SootClass superC = scratchClass
                                            .getSuperclass();

                                    if (superC.declaresMethod(invokeMethod
                                            .getSubSignature())) {
                                        invokeMethod = superC
                                                .getMethod(invokeMethod
                                                        .getSubSignature());
                                        System.out.println("SootUtilties."
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.