Skip to content

Commit 2bbb971

Browse files
committed
Merge branch 'develop' of github.com:secure-software-engineering/FlowDroid into develop
2 parents 2c2ab2c + f90bc0a commit 2bbb971

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

soot-infoflow-android/src/soot/jimple/infoflow/android/manifest/IComponentContainer.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ public interface IComponentContainer<E extends IAndroidComponent> extends Iterab
2727
*/
2828
public E getComponentByName(String name);
2929

30+
/**
31+
* Checks whether a component with the given unique class name exists
32+
*
33+
* @param name The name of the class that implements the component
34+
* @return True if this container contains an Android component that is
35+
* implemented by a class with the given name, false otherwise
36+
*/
37+
default public boolean hasComponentByName(String name) {
38+
return name != null && getComponentByName(name) != null;
39+
}
40+
3041
/**
3142
* Checks whether this container is empty, i.e., does not contain any components
3243
*

0 commit comments

Comments
 (0)