File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
soot-infoflow-android/src/soot/jimple/infoflow/android/manifest Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments