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

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

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

Analyzer.removeTransitive介绍

[英]Transitively remove all elemens from unreachable through the uses link.
[中]通过uses链接,将所有元素从不可访问状态中删除。

代码示例

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

/**
 * Transitively remove all elemens from unreachable through the uses link.
 * 
 * @param name
 * @param unreachable
 */
void removeTransitive(PackageRef name, Set<PackageRef> unreachable) {
  if (!unreachable.contains(name))
    return;
  unreachable.remove(name);
  List<PackageRef> ref = uses.get(name);
  if (ref != null) {
    for (Iterator<PackageRef> r = ref.iterator(); r.hasNext();) {
      PackageRef element = r.next();
      removeTransitive(element, unreachable);
    }
  }
}

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

/**
 * Transitively remove all elemens from unreachable through the uses link.
 * 
 * @param name
 * @param unreachable
 */
void removeTransitive(PackageRef name, Set<PackageRef> unreachable) {
  if (!unreachable.contains(name))
    return;
  unreachable.remove(name);
  List<PackageRef> ref = uses.get(name);
  if (ref != null) {
    for (Iterator<PackageRef> r = ref.iterator(); r.hasNext();) {
      PackageRef element = r.next();
      removeTransitive(element, unreachable);
    }
  }
}

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

/**
 * Transitively remove all elemens from unreachable through the uses link.
 * 
 * @param name
 * @param unreachable
 */
void removeTransitive(PackageRef name, Set<PackageRef> unreachable) {
  if (!unreachable.contains(name))
    return;
  unreachable.remove(name);
  List<PackageRef> ref = uses.get(name);
  if (ref != null) {
    for (Iterator<PackageRef> r = ref.iterator(); r.hasNext();) {
      PackageRef element = r.next();
      removeTransitive(element, unreachable);
    }
  }
}

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

/**
 * Transitively remove all elemens from unreachable through the uses link.
 * 
 * @param name
 * @param unreachable
 */
void removeTransitive(PackageRef name, Set<PackageRef> unreachable) {
  if (!unreachable.contains(name))
    return;
  unreachable.remove(name);
  List<PackageRef> ref = uses.get(name);
  if (ref != null) {
    for (Iterator<PackageRef> r = ref.iterator(); r.hasNext();) {
      PackageRef element = r.next();
      removeTransitive(element, unreachable);
    }
  }
}

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

/**
 * Transitively remove all elemens from unreachable through the uses link.
 * 
 * @param name
 * @param unreachable
 */
void removeTransitive(PackageRef name, Set<PackageRef> unreachable) {
  if (!unreachable.contains(name))
    return;
  unreachable.remove(name);
  List<PackageRef> ref = uses.get(name);
  if (ref != null) {
    for (Iterator<PackageRef> r = ref.iterator(); r.hasNext();) {
      PackageRef element = r.next();
      removeTransitive(element, unreachable);
    }
  }
}

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

/**
 * Return the set of unreachable code depending on exports and the bundle
 * activator.
 */
public Set<PackageRef> getUnreachable() {
  Set<PackageRef> unreachable = new HashSet<>(uses.keySet()); // all
  for (Iterator<PackageRef> r = exports.keySet()
    .iterator(); r.hasNext();) {
    PackageRef packageRef = r.next();
    removeTransitive(packageRef, unreachable);
  }
  if (activator != null) {
    removeTransitive(activator.getPackageRef(), unreachable);
  }
  return unreachable;
}

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

/**
 * Return the set of unreachable code depending on exports and the bundle
 * activator.
 * 
 * @return
 */
public Set<PackageRef> getUnreachable() {
  Set<PackageRef> unreachable = new HashSet<PackageRef>(uses.keySet()); // all
  for (Iterator<PackageRef> r = exports.keySet().iterator(); r.hasNext();) {
    PackageRef packageRef = r.next();
    removeTransitive(packageRef, unreachable);
  }
  if (activator != null) {
    removeTransitive(activator.getPackageRef(), unreachable);
  }
  return unreachable;
}

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

/**
 * Return the set of unreachable code depending on exports and the bundle
 * activator.
 */
public Set<PackageRef> getUnreachable() {
  Set<PackageRef> unreachable = new HashSet<>(uses.keySet()); // all
  for (Iterator<PackageRef> r = exports.keySet()
    .iterator(); r.hasNext();) {
    PackageRef packageRef = r.next();
    removeTransitive(packageRef, unreachable);
  }
  if (activator != null) {
    removeTransitive(activator.getPackageRef(), unreachable);
  }
  return unreachable;
}

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

/**
 * Return the set of unreachable code depending on exports and the bundle
 * activator.
 * 
 * @return
 */
public Set<PackageRef> getUnreachable() {
  Set<PackageRef> unreachable = new HashSet<PackageRef>(uses.keySet()); // all
  for (Iterator<PackageRef> r = exports.keySet().iterator(); r.hasNext();) {
    PackageRef packageRef = r.next();
    removeTransitive(packageRef, unreachable);
  }
  if (activator != null) {
    removeTransitive(activator.getPackageRef(), unreachable);
  }
  return unreachable;
}

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

/**
 * Return the set of unreachable code depending on exports and the bundle
 * activator.
 * 
 * @return
 */
public Set<PackageRef> getUnreachable() {
  Set<PackageRef> unreachable = new HashSet<PackageRef>(uses.keySet()); // all
  for (Iterator<PackageRef> r = exports.keySet().iterator(); r.hasNext();) {
    PackageRef packageRef = r.next();
    removeTransitive(packageRef, unreachable);
  }
  if (activator != null) {
    removeTransitive(activator.getPackageRef(), unreachable);
  }
  return unreachable;
}

相关文章

Analyzer类方法