本文整理了Java中aQute.bnd.osgi.Analyzer.removeTransitive()
方法的一些代码示例,展示了Analyzer.removeTransitive()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.removeTransitive()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Analyzer
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!