aQute.libg.glob.Glob.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(142)

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

Glob.<init>介绍

暂无

代码示例

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

public DefaultURLConnectionHandler addMatcher(String glob) {
    matchers.add(new Glob(glob));
    return this;
  }
}

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

public DefaultURLConnectionHandler addMatcher(String glob) {
    matchers.add(new Glob(glob));
    return this;
  }
}

代码示例来源:origin: org.osgi/osgi.enroute.authorization.simple.provider

public Assert(String key) {
  String[] parts = key.split(";");
  matchers = parts.length == 0 ? EMPTY_GLOBS : new Glob[parts.length - 1];
  for (int i = 1; i < parts.length; i++) {
    matchers[i - 1] = new Glob(parts[i]);
  }
}

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

/**
 * Set the properties for this plugin. Subclasses should call this method
 * before they handle their own properties.
 */
public void setProperties(Map<String,String> map) throws Exception {
  String matches = map.get(MATCH);
  if (matches != null) {
    for (String p : matches.split("\\s*,\\s*")) {
      matchers.add(new Glob(p));
    }
  }
}

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

/**
 * Set the properties for this plugin. Subclasses should call this method
 * before they handle their own properties.
 */
public void setProperties(Map<String,String> map) throws Exception {
  String matches = map.get(MATCH);
  if (matches != null) {
    for (String p : matches.split("\\s*,\\s*")) {
      matchers.add(new Glob(p));
    }
  }
}

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

public static Collection<File> tree(File current, String glob) {
  Set<File> files = new LinkedHashSet<>();
  traverse(files, current, glob == null ? null : new Glob(glob));
  return files;
}

代码示例来源:origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

public static Collection<File> tree(File current, String glob) {
  Set<File> files = new LinkedHashSet<>();
  traverse(files, current, glob == null ? null : new Glob(glob));
  return files;
}

代码示例来源:origin: org.osgi/osgi.enroute.configurer.simple.provider

public static Collection<File> tree(File current, String glob) {
  Set<File> files = new LinkedHashSet<>();
  traverse(files, current, glob == null ? null : new Glob(glob));
  return files;
}

代码示例来源:origin: org.osgi/osgi.enroute.rest.simple.provider

public static Collection<File> tree(File current, String glob) {
  Set<File> files = new LinkedHashSet<File>();
  traverse(files, current, glob == null ? null : new Glob(glob));
  return files;
}

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

public static Collection<File> tree(File current, String glob) {
  Set<File> files = new LinkedHashSet<>();
  traverse(files, current, glob == null ? null : new Glob(glob));
  return files;
}

代码示例来源:origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

public static Collection<File> tree(File current, String glob) {
  Set<File> files = new LinkedHashSet<>();
  traverse(files, current, glob == null ? null : new Glob(glob));
  return files;
}

代码示例来源:origin: org.osgi/osgi.enroute.web.simple.provider

public static Collection<File> tree(File current, String glob) {
  Set<File> files = new LinkedHashSet<File>();
  traverse(files, current, glob == null ? null : new Glob(glob));
  return files;
}

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

public static Collection<File> tree(File current, String glob) {
  Set<File> files = new LinkedHashSet<>();
  traverse(files, current, glob == null ? null : new Glob(glob));
  return files;
}

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

public static Collection<File> tree(File current, String glob) {
  Set<File> files = new LinkedHashSet<>();
  traverse(files, current, glob == null ? null : new Glob(glob));
  return files;
}

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

@Override
public List<String> list(String pattern) throws Exception {
  init();
  Glob glob = pattern != null ? new Glob(pattern) : null;
  List<String> result = new LinkedList<>();
  for (String bsn : identityMap.getIdentities()) {
    if (glob == null || glob.matcher(bsn)
      .matches())
      result.add(bsn);
  }
  return result;
}

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

@Override
public List<String> list(String pattern) throws Exception {
  init();
  Glob glob = pattern != null ? new Glob(pattern) : null;
  List<String> result = new LinkedList<>();
  for (String bsn : identityMap.getIdentities()) {
    if (glob == null || glob.matcher(bsn)
      .matches())
      result.add(bsn);
  }
  return result;
}

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

public List<URI> crawl(String string) throws Exception {
  Glob glob;
  if (string == null)
    glob = Glob.ALL;
  else
    glob = new Glob(string);
  Promise<List<URI>> crawl = crawl(uri, glob);
  return crawl.getValue();
}

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

public List<URI> crawl(String string) throws Exception {
  Glob glob;
  if (string == null)
    glob = Glob.ALL;
  else
    glob = new Glob(string);
  Promise<List<URI>> crawl = crawl(uri, glob);
  return crawl.getValue();
}

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

/**
 * Set the properties for this plugin. Subclasses should call this method
 * before they handle their own properties.
 */
@Override
public void setProperties(Map<String, String> map) throws Exception {
  Config config = Converter.cnv(Config.class, map);
  for (String p : Processor.split(config.match())) {
    matchers.add(new Glob(p));
  }
}

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

/**
 * Set the properties for this plugin. Subclasses should call this method
 * before they handle their own properties.
 */
@Override
public void setProperties(Map<String, String> map) throws Exception {
  Config config = Converter.cnv(Config.class, map);
  for (String p : Processor.split(config.match())) {
    matchers.add(new Glob(p));
  }
}

相关文章