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

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

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

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:

  • com.foo.bar
  • com.foo.*
  • com.foo.???
  • com.*.[^b][^a][^r]
  • !com.foo.* (throws away any match for com.foo.)
    Enough rope to hang the average developer I would say.
    [中]合并两个映射的属性,其中第一个映射可以包含通配符名称。其思想是第一个映射包含带有一组属性的指令(例如
    )。这些模式与实际中找到的包相匹配。如果它们匹配,则使用合并的属性集设置结果。预计指令会被排序,以便讲师可以定义哪种模式首先匹配。指令中的属性将覆盖实际值中的任何属性。
    模式是一个经过修改的regexp,因此看起来像是globbing。*变为。*就跟这个一样?变成了一个.?。'替换为\。此外,如果模式以感叹号开头,它将删除与该模式匹配的(-the!)从工作组。因此,以下模式应该有效:
    *com。福。酒吧
    com。福
    *com。福。???
    com.。[^b][^a][^r]
  • !通用域名格式。富。(放弃com.foo的任何比赛。
    我会说,这条绳子足以吊死一个普通的开发者。

代码示例

代码示例来源: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()) {

相关文章

Analyzer类方法