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

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

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

Glob.toString介绍

暂无

代码示例

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

/**
 * Shell command to remove a control
 * 
 * @param pattern
 *            the pattern to remove (will remove all controls with that
 *            exact pattern)
 * @return the controls removed
 */
public List<Control> unmatch(Glob pattern) throws Exception {
  Settings settings = getSettings();
  List<Control> deleted = new ArrayList<>();
  for (Iterator<Control> i = settings.controls.iterator(); i.hasNext();) {
    Control c = i.next();
    if (c.pattern.equals(pattern.toString())) {
      i.remove();
      deleted.add(c);
    }
  }
  setSettings(settings);
  return deleted;
}

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

Control control = new Control();
control.level = toLevel(level);
control.pattern = pattern.toString();
for (String option : options) {
  switch (option) {

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

String validFileName = toValidFileName(glob.toString());
File file = b.getDataFile(OSGI_ENROUTE_WEBRESOURCE + "/" + version + "/" + validFileName);
file.getParentFile().mkdirs();

相关文章