本文整理了Java中soot.Body.validateLocal()
方法的一些代码示例,展示了Body.validateLocal()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Body.validateLocal()
方法的具体详情如下:
包路径:soot.Body
类名称:Body
方法名:validateLocal
[英]Verifies that each Local of getUseAndDefBoxes() is in this body's locals Chain.
[中]验证getUseAndDefBoxes()的每个局部变量是否在此主体的局部变量链中。
代码示例来源:origin: ibinti/bugvm
/** Verifies that each Local of getUseAndDefBoxes() is in this body's locals Chain. */
public void validateLocals()
{
Iterator<ValueBox> it = getUseBoxes().iterator();
while(it.hasNext()){
validateLocal( it.next() );
}
it = getDefBoxes().iterator();
while(it.hasNext()){
validateLocal( it.next() );
}
}
private void validateLocal( ValueBox vb ) {
代码示例来源:origin: com.bugvm/bugvm-soot
/** Verifies that each Local of getUseAndDefBoxes() is in this body's locals Chain. */
public void validateLocals()
{
Iterator<ValueBox> it = getUseBoxes().iterator();
while(it.hasNext()){
validateLocal( it.next() );
}
it = getDefBoxes().iterator();
while(it.hasNext()){
validateLocal( it.next() );
}
}
private void validateLocal( ValueBox vb ) {
内容来源于网络,如有侵权,请联系作者删除!