We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c2ab2c + f90bc0a commit 2bbb971Copy full SHA for 2bbb971
1 file changed
soot-infoflow-android/src/soot/jimple/infoflow/android/manifest/IComponentContainer.java
@@ -27,6 +27,17 @@ public interface IComponentContainer<E extends IAndroidComponent> extends Iterab
27
*/
28
public E getComponentByName(String name);
29
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
+
41
/**
42
* Checks whether this container is empty, i.e., does not contain any components
43
*
0 commit comments