soot.options.Options.soot_classpath()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(399)

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

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

相关文章

微信公众号

最新文章

更多