soot.Body.setMethod()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(227)

本文整理了Java中soot.Body.setMethod()方法的一些代码示例,展示了Body.setMethod()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Body.setMethod()方法的具体详情如下:
包路径:soot.Body
类名称:Body
方法名:setMethod

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);

相关文章