本文整理了Java中soot.options.Options.soot_classpath()
方法的一些代码示例,展示了Options.soot_classpath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Options.soot_classpath()
方法的具体详情如下:
包路径:soot.options.Options
类名称:Options
方法名:soot_classpath
暂无
代码示例来源:origin: Sable/soot
/**
* Appends the soot classpath to the default system classpath.
*/
public String constructFullClasspath() {
String cp = super.constructFullClasspath();
cp += File.pathSeparator + soot.options.Options.v().soot_classpath();
return cp;
}
代码示例来源:origin: Sable/soot
= new LinkedList<String>(Arrays.asList(Options.v().soot_classpath().split(File.pathSeparator)));
classPathEntries.addAll(Options.v().process_dir());
代码示例来源:origin: Sable/soot
public String getSootClassPath() {
if (sootClassPath == null) {
String optionscp = Options.v().soot_classpath();
if (optionscp != null && optionscp.length() > 0) {
sootClassPath = optionscp;
}
// if no classpath is given on the command line, take the default
if (sootClassPath == null || sootClassPath.isEmpty()) {
sootClassPath = defaultClassPath();
} else {
// if one is given...
if (Options.v().prepend_classpath()) {
// if the prepend flag is set, append the default classpath
sootClassPath += File.pathSeparator + defaultClassPath();
}
// else, leave it as it is
}
// add process-dirs
List<String> process_dir = Options.v().process_dir();
StringBuffer pds = new StringBuffer();
for (String path : process_dir) {
if (!sootClassPath.contains(path)) {
pds.append(path);
pds.append(File.pathSeparator);
}
}
sootClassPath = pds + sootClassPath;
}
return sootClassPath;
}
代码示例来源:origin: Sable/soot
String[] sootClasspath = options.soot_classpath().split(File.pathSeparator);
List<String> classpathList = new ArrayList<String>();
for (String str : sootClasspath) {
代码示例来源:origin: ibinti/bugvm
public String getSootClassPath()
{
if( sootClassPath == null ) {
String optionscp = Options.v().soot_classpath();
if( optionscp.length() > 0 )
sootClassPath = optionscp;
String defaultSootClassPath = defaultClassPath();
//if no classpath is given on the command line, take the default
if( sootClassPath == null ) {
sootClassPath = defaultSootClassPath;
} else {
//if one is given...
if(Options.v().prepend_classpath()) {
//if the prepend flag is set, append the default classpath
sootClassPath += File.pathSeparator + defaultSootClassPath;
}
//else, leave it as it is
}
}
return sootClassPath;
}
代码示例来源:origin: com.bugvm/bugvm-soot
public String getSootClassPath()
{
if( sootClassPath == null ) {
String optionscp = Options.v().soot_classpath();
if( optionscp.length() > 0 )
sootClassPath = optionscp;
String defaultSootClassPath = defaultClassPath();
//if no classpath is given on the command line, take the default
if( sootClassPath == null ) {
sootClassPath = defaultSootClassPath;
} else {
//if one is given...
if(Options.v().prepend_classpath()) {
//if the prepend flag is set, append the default classpath
sootClassPath += File.pathSeparator + defaultSootClassPath;
}
//else, leave it as it is
}
}
return sootClassPath;
}
内容来源于网络,如有侵权,请联系作者删除!