本文整理了Java中soot.Body.setMethod()
方法的一些代码示例,展示了Body.setMethod()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Body.setMethod()
方法的具体详情如下:
包路径:soot.Body
类名称:Body
方法名:setMethod
[英]Sets the method associated with this Body.
[中]设置与此正文关联的方法。
代码示例来源:origin: Sable/soot
/**
* Sets the active body for this method.
*/
public synchronized void setActiveBody(Body body) {
if ((declaringClass != null) && declaringClass.isPhantomClass()) {
throw new RuntimeException("cannot set active body for phantom class! " + this);
}
// If someone sets a body for a phantom method, this method then is no
// longer phantom
setPhantom(false);
if (!isConcrete()) {
throw new RuntimeException("cannot set body for non-concrete method! " + this);
}
if (body != null && body.getMethod() != this) {
body.setMethod(this);
}
this.activeBody = body;
}
代码示例来源:origin: Sable/soot
accessorBody.setMethod(accessor);
accessor.setActiveBody(accessorBody);
target.addMethod(accessor);
代码示例来源:origin: Sable/soot
accessorBody.setMethod(accessor);
accessor.setActiveBody(accessorBody);
target.addMethod(accessor);
代码示例来源:origin: Sable/soot
accessorBody.setMethod(accessor);
accessor.setActiveBody(accessorBody);
target.addMethod(accessor);
代码示例来源:origin: ibinti/bugvm
/**
Sets the active body for this method.
*/
public void setActiveBody(Body body) {
if ((declaringClass != null)
&& declaringClass.isPhantomClass())
throw new RuntimeException(
"cannot set active body for phantom class! " + this);
if (!isConcrete())
throw new RuntimeException(
"cannot set body for non-concrete method! " + this);
if (body!= null && body.getMethod() != this)
body.setMethod(this);
activeBody = body;
}
代码示例来源:origin: com.bugvm/bugvm-soot
/**
Sets the active body for this method.
*/
public void setActiveBody(Body body) {
if ((declaringClass != null)
&& declaringClass.isPhantomClass())
throw new RuntimeException(
"cannot set active body for phantom class! " + this);
if (!isConcrete())
throw new RuntimeException(
"cannot set body for non-concrete method! " + this);
if (body!= null && body.getMethod() != this)
body.setMethod(this);
activeBody = body;
}
代码示例来源:origin: secure-software-engineering/FlowDroid
body.setMethod(mainMethod);
mainMethod.setActiveBody(body);
内容来源于网络,如有侵权,请联系作者删除!