本文整理了Java中aQute.bnd.osgi.Analyzer.getPackageInfo()
方法的一些代码示例,展示了Analyzer.getPackageInfo()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.getPackageInfo()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Analyzer
类名称: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)) {
内容来源于网络,如有侵权,请联系作者删除!