use of soot.jimple.StringConstant in project soot by Sable.
the class MethodNodeFactory method caseStaticInvokeExpr.
@Override
public void caseStaticInvokeExpr(StaticInvokeExpr v) {
SootMethodRef ref = v.getMethodRef();
if (v.getArgCount() == 1 && v.getArg(0) instanceof StringConstant && ref.name().equals("forName") && ref.declaringClass().getName().equals("java.lang.Class") && ref.parameterTypes().size() == 1) {
// This is a call to Class.forName
StringConstant classNameConst = (StringConstant) v.getArg(0);
caseClassConstant(ClassConstant.v("L" + classNameConst.value.replaceAll("\\.", "/") + ";"));
}
}
Aggregations