Class ConfigurationBasedCategoryFilter
java.lang.Object
soot.jimple.infoflow.android.source.ConfigurationBasedCategoryFilter
- All Implemented Interfaces:
AbstractXMLSourceSinkParser.ICategoryFilter
public class ConfigurationBasedCategoryFilter
extends Object
implements AbstractXMLSourceSinkParser.ICategoryFilter
Default class for filtering source and sink definitions based on the category
- Author:
- Steven Arzt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsCategory(ISourceSinkCategory category) Checks whether methods from the given category shall be parsed or notfilter(ISourceSinkCategory category, SourceSinkType sourceSinkType) Filters sources and sinks by category
-
Constructor Details
-
ConfigurationBasedCategoryFilter
public ConfigurationBasedCategoryFilter(InfoflowAndroidConfiguration.SourceSinkConfiguration config) Creates a new instance of theConfigurationBasedCategoryFilterclass- Parameters:
config- The configuration that defines which source and sink categories to include and which ones to exclude
-
-
Method Details
-
acceptsCategory
Description copied from interface:AbstractXMLSourceSinkParser.ICategoryFilterChecks whether methods from the given category shall be parsed or not- Specified by:
acceptsCategoryin interfaceAbstractXMLSourceSinkParser.ICategoryFilter- Parameters:
category- The category in which the source or sink is defined- Returns:
- True if the given category shall be parsed, otherwise false
-
filter
Description copied from interface:AbstractXMLSourceSinkParser.ICategoryFilterFilters sources and sinks by category- Specified by:
filterin interfaceAbstractXMLSourceSinkParser.ICategoryFilter- Parameters:
category- The category in which the source or sink is definedsourceSinkType- Specifies whether the category is used for sources or sinks- Returns:
- The acceptable use of the given category. This is a reduction from the given type. If the requested type, for example, is "Both", this method may return "Source", if the category shall only be used for sources, but not for sinks.
-