本文整理了Java中soot.options.Options.debug_resolver()
方法的一些代码示例,展示了Options.debug_resolver()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Options.debug_resolver()
方法的具体详情如下:
包路径:soot.options.Options
类名称:Options
方法名:debug_resolver
暂无
代码示例来源:origin: Sable/soot
/**
* Constructs an empty SootClass with the given name and modifiers.
*/
public SootClass(String name, int modifiers) {
if (name.charAt(0) == '[') {
throw new RuntimeException("Attempt to make a class whose name starts with [");
}
setName(name);
this.modifiers = modifiers;
initializeRefType(name);
if (Options.v().debug_resolver()) {
logger.debug("created " + name + " with modifiers " + modifiers);
}
setResolvingLevel(BODIES);
}
代码示例来源:origin: Sable/soot
/**
* Hierarchy - we know the hierarchy of the class and that's it requires at least Hierarchy for all supertypes and
* enclosing types.
*/
protected void bringToHierarchy(SootClass sc) {
if (sc.resolvingLevel() >= SootClass.HIERARCHY) {
return;
}
if (Options.v().debug_resolver()) {
logger.debug("bringing to HIERARCHY: " + sc);
}
sc.setResolvingLevel(SootClass.HIERARCHY);
bringToHierarchyUnchecked(sc);
}
代码示例来源:origin: Sable/soot
/**
* Signatures - we know the signatures of all methods and fields requires at least Hierarchy for all referred to types in
* these signatures.
*/
protected void bringToSignatures(SootClass sc) {
if (sc.resolvingLevel() >= SootClass.SIGNATURES) {
return;
}
bringToHierarchy(sc);
if (Options.v().debug_resolver()) {
logger.debug("bringing to SIGNATURES: " + sc);
}
sc.setResolvingLevel(SootClass.SIGNATURES);
bringToSignaturesUnchecked(sc);
}
代码示例来源:origin: Sable/soot
/**
* Bodies - we can now start loading the bodies of methods for all referred to methods and fields in the bodies, requires
* signatures for the method receiver and field container, and hierarchy for all other classes referenced in method
* references. Current implementation does not distinguish between the receiver and other references. Therefore, it is
* conservative and brings all of them to signatures. But this could/should be improved.
*/
protected void bringToBodies(SootClass sc) {
if (sc.resolvingLevel() >= SootClass.BODIES) {
return;
}
bringToSignatures(sc);
if (Options.v().debug_resolver()) {
logger.debug("bringing to BODIES: " + sc);
}
sc.setResolvingLevel(SootClass.BODIES);
bringToBodiesUnchecked(sc);
}
代码示例来源:origin: ibinti/bugvm
if(sc.resolvingLevel() >= SootClass.BODIES ) return;
bringToSignatures(sc);
if(Options.v().debug_resolver())
G.v().out.println("bringing to BODIES: "+sc);
sc.setResolvingLevel(SootClass.BODIES);
代码示例来源:origin: com.bugvm/bugvm-soot
if(sc.resolvingLevel() >= SootClass.BODIES ) return;
bringToSignatures(sc);
if(Options.v().debug_resolver())
G.v().out.println("bringing to BODIES: "+sc);
sc.setResolvingLevel(SootClass.BODIES);
代码示例来源:origin: ibinti/bugvm
/**
Constructs an empty SootClass with the given name and modifiers.
*/
public SootClass(String name, int modifiers)
{
if( name.charAt(0) == '[' ) throw new RuntimeException( "Attempt to make a class whose name starts with [" );
setName( name);
this.modifiers = modifiers;
refType = RefType.v(name);
refType.setSootClass(this);
if(Options.v().debug_resolver()) G.v().out.println("created "+name+" with modifiers "+modifiers);
setResolvingLevel(BODIES);
Scene.v().getClassNumberer().add(this);
}
代码示例来源:origin: com.bugvm/bugvm-soot
/**
Constructs an empty SootClass with the given name and modifiers.
*/
public SootClass(String name, int modifiers)
{
if( name.charAt(0) == '[' ) throw new RuntimeException( "Attempt to make a class whose name starts with [" );
setName( name);
this.modifiers = modifiers;
refType = RefType.v(name);
refType.setSootClass(this);
if(Options.v().debug_resolver()) G.v().out.println("created "+name+" with modifiers "+modifiers);
setResolvingLevel(BODIES);
Scene.v().getClassNumberer().add(this);
}
代码示例来源:origin: ibinti/bugvm
if(Options.v().debug_resolver())
G.v().out.println("bringing to HIERARCHY: "+sc);
sc.setResolvingLevel(SootClass.HIERARCHY);
代码示例来源:origin: com.bugvm/bugvm-soot
if(Options.v().debug_resolver())
G.v().out.println("bringing to HIERARCHY: "+sc);
sc.setResolvingLevel(SootClass.HIERARCHY);
代码示例来源:origin: ibinti/bugvm
if(sc.resolvingLevel() >= SootClass.SIGNATURES ) return;
bringToHierarchy(sc);
if(Options.v().debug_resolver())
G.v().out.println("bringing to SIGNATURES: "+sc);
sc.setResolvingLevel(SootClass.SIGNATURES);
代码示例来源:origin: com.bugvm/bugvm-soot
if(sc.resolvingLevel() >= SootClass.SIGNATURES ) return;
bringToHierarchy(sc);
if(Options.v().debug_resolver())
G.v().out.println("bringing to SIGNATURES: "+sc);
sc.setResolvingLevel(SootClass.SIGNATURES);
内容来源于网络,如有侵权,请联系作者删除!