本文整理了Java中aQute.bnd.osgi.Analyzer.filter()
方法的一些代码示例,展示了Analyzer.filter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.filter()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Analyzer
类名称:Analyzer
方法名:filter
[英]Merge the attributes of two maps, where the first map can contain wildcarded names. The idea is that the first map contains instructions (for example ) with a set of attributes. These patterns are matched against the found packages in actual. If they match, the result is set with the merged set of attributes. It is expected that the instructions are ordered so that the instructor can define which pattern matches first. Attributes in the instructions override any attributes from the actual.
A pattern is a modified regexp so it looks like globbing. The * becomes a . just like the ? becomes a .?. '.' are replaced with \. Additionally, if the pattern starts with an exclamation mark, it will remove that matches for that pattern (- the !) from the working set. So the following patterns should work:
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
public String _imports(String[] args) {
return join(filter(getImports().keySet(), args));
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public String _exports(String[] args) {
return join(filter(getExports().keySet(), args));
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public String _imports(String[] args) {
return join(filter(getImports().keySet(), args));
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
public String _exports(String[] args) {
return join(filter(getExports().keySet(), args));
}
代码示例来源:origin: biz.aQute.bnd/bnd
public String _exports(String[] args) {
return join(filter(getExports().keySet(), args));
}
代码示例来源:origin: biz.aQute.bnd/bndlib
public String _exports(String[] args) {
return join(filter(getExports().keySet(), args));
}
代码示例来源:origin: biz.aQute.bnd/bnd
public String _imports(String[] args) {
return join(filter(getImports().keySet(), args));
}
代码示例来源:origin: biz.aQute.bnd/bndlib
public String _imports(String[] args) {
return join(filter(getImports().keySet(), args));
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
exports = filter(filter, contained, unused);
imports = filter(filter, referredAndExported, unused);
if (!unused.isEmpty()) {
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
exports = filter(filter, contained, unused);
imports = filter(filter, referredAndExported, unused);
if (!unused.isEmpty()) {
代码示例来源:origin: biz.aQute/bndlib
filter.append(getExportContents());
exports = filter(filter, contained, unused);
imports = filter(filter, referredAndExported, unused);
if (!unused.isEmpty()) {
代码示例来源:origin: biz.aQute.bnd/bndlib
filter.append(getExportContents());
exports = filter(filter, contained, unused);
imports = filter(filter, referredAndExported, unused);
if (!unused.isEmpty()) {
代码示例来源:origin: biz.aQute.bnd/bnd
filter.append(getExportContents());
exports = filter(filter, contained, unused);
imports = filter(filter, referredAndExported, unused);
if (!unused.isEmpty()) {
内容来源于网络,如有侵权,请联系作者删除!