aQute.bnd.osgi.Analyzer.getClasspathExports()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(120)

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

Analyzer.getClasspathExports介绍

暂无

代码示例

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

.getPackageRef();
next.setProperty("@package", pref.getFQN());
Attrs info = analyzer.getClasspathExports()
  .get(pref);
if (info == null)

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

.getPackageRef();
next.setProperty("@package", pref.getFQN());
Attrs info = analyzer.getClasspathExports()
  .get(pref);
if (info == null)

代码示例来源:origin: biz.aQute.bnd/bndlib

private void add(String name, String value) {
  if (value == null)
    return;
  Processor next = new Processor(analyzer);
  next.setProperty("@class", current.getFQN());
  next.setProperty("@class-short", current.getClassName().getShortName());
  PackageRef pref = current.getClassName().getPackageRef();
  next.setProperty("@package", pref.getFQN());
  Attrs info = analyzer.getClasspathExports().get(pref);
  if (info == null)
    info = analyzer.getContained().get(pref);
  if (info != null && info.containsKey("version")) {
    next.setProperty("@version", info.get("version"));
  }
  Macro macro = next.getReplacer();
  /*
   * These strings come from code, which might also be included from
   * external parties. So we just do not want to call any system commands
   * from these sources
   */
  boolean prev = macro.setNosystem(true);
  try {
    value = macro.process(value);
    headers.add(name, value);
    next.close();
  }
  finally {
    macro.setNosystem(prev);
  }
}

代码示例来源:origin: biz.aQute.bnd/bnd

private void add(String name, String value) {
  if (value == null)
    return;
  Processor next = new Processor(analyzer);
  next.setProperty("@class", current.getFQN());
  next.setProperty("@class-short", current.getClassName().getShortName());
  PackageRef pref = current.getClassName().getPackageRef();
  next.setProperty("@package", pref.getFQN());
  Attrs info = analyzer.getClasspathExports().get(pref);
  if (info == null)
    info = analyzer.getContained().get(pref);
  if (info != null && info.containsKey("version")) {
    next.setProperty("@version", info.get("version"));
  }
  Macro macro = next.getReplacer();
  /*
   * These strings come from code, which might also be included from
   * external parties. So we just do not want to call any system commands
   * from these sources
   */
  boolean prev = macro.setNosystem(true);
  try {
    value = macro.process(value);
    headers.add(name, value);
    next.close();
  }
  finally {
    macro.setNosystem(prev);
  }
}

相关文章

Analyzer类方法