/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); /* TODO */ { defaultMethod(method, thisVar, returnVar, params); return; } }
/** Returns true iff the edge e is wanted. */ public boolean want(Edge e) { String tgtSubSignature = e.tgt().getSubSignature(); if (tgtSubSignature.equals("void run()")) { return true; } return false; } }
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } } }
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); /* TODO */ { defaultMethod(method, thisVar, returnVar, params); return; } }
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); /* TODO */ { defaultMethod(method, thisVar, returnVar, params); return; } }
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } } }
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } } /************************* java.lang.StrictMath *******************/
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } }
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } } }
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } } /************************ java.io.FileInputStream *****************/
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } } /*********************** java.io.FileOutputStream *****************/
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } }
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } } }
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } }
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } } }
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } } /************** java.lang.ClassLoader$NativeLibrary ****************/
/** * Implements the abstract method simulateMethod. It distributes the request to the corresponding methods by signatures. */ public void simulateMethod(SootMethod method, ReferenceVariable thisVar, ReferenceVariable returnVar, ReferenceVariable params[]) { String subSignature = method.getSubSignature(); { defaultMethod(method, thisVar, returnVar, params); return; } }
/** * Returns the Soot signature of this method. Used to refer to methods unambiguously. */ public String getSignature() { if (sig == null) { synchronized (this) { if (sig == null) { sig = getSignature(getDeclaringClass(), getSubSignature()); } } } return sig; }
@Override public NumberedString getSubSignature() { return Scene.v().getSubSigNumberer().findOrAdd(SootMethod.getSubSignature(name, parameterTypes, returnType)); }
private void finalizeConstructor() { // set davaBody...totally redundant but have to do as this is checked by // toString of ASTMethodNode newASTConstructorMethod.setDavaBody(newConstructorDavaBody); newConstructorDavaBody.getUnits().clear(); newConstructorDavaBody.getUnits().addLast(newASTConstructorMethod); System.out.println("Setting declaring class of method" + newConstructor.getSubSignature()); newConstructor.setDeclaringClass(originalSootClass); }