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

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

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

Analyzer.getPackageInfo介绍

暂无

代码示例

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

@Override
public void classBegin(int access, TypeRef name) {
  definitions.get(0).implementation = name;
  PackageDef packageDef = packageInfos.computeIfAbsent(name.getPackageRef(), k -> {
    Clazz packageInfoClazz = analyzer.getPackageInfo(k);
    if (packageInfoClazz != null) {
      try {
        PackageDef pd = new PackageDef();
        packageInfoClazz.parseClassFileWithCollector(pd);
        return pd;
      } catch (Exception e) {
        analyzer.exception(e, "Error while processing package-info of class %s", clazz);
      }
    }
    return new PackageDef();
  });
  if (packageDef.marked != null) {
    definitions.get(0).marked = packageDef.marked.matches(name.getFQN());
  }
}

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

@Override
public void classBegin(int access, TypeRef name) {
  definitions.get(0).implementation = name;
  PackageDef packageDef = packageInfos.computeIfAbsent(name.getPackageRef(), k -> {
    Clazz packageInfoClazz = analyzer.getPackageInfo(k);
    if (packageInfoClazz != null) {
      try {
        PackageDef pd = new PackageDef();
        packageInfoClazz.parseClassFileWithCollector(pd);
        return pd;
      } catch (Exception e) {
        analyzer.exception(e, "Error while processing package-info of class %s", clazz);
      }
    }
    return new PackageDef();
  });
  if (packageDef.marked != null) {
    definitions.get(0).marked = packageDef.marked.matches(name.getFQN());
  }
}

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

Clazz packageClazz = analyzer.getPackageInfo(clazz.getClassName()
  .getPackageRef());
if (packageClazz != null && packageClazz.is(QUERY.ANNOTATED, VETOED_INSTR, analyzer)) {

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

Clazz packageClazz = analyzer.getPackageInfo(clazz.getClassName()
  .getPackageRef());
if (packageClazz != null && packageClazz.is(QUERY.ANNOTATED, VETOED_INSTR, analyzer)) {

相关文章

Analyzer类方法