Class LayoutControlFactory
java.lang.Object
soot.jimple.infoflow.android.resources.controls.LayoutControlFactory
Factory class for creating Android layout controls
- Author:
- Steven Arzt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyAttributes(AXmlNode node, AndroidLayoutControl lc) createLayoutControl(String layoutFile, soot.SootClass layoutClass, AXmlNode node) protected AndroidLayoutControlcreateLayoutControl(soot.SootClass layoutClass) Creates an empty layout control that corresponds to the given classprotected booleanChecks whether the given namespace belongs to the Android operating systemvoidsetLoadAdditionalAttributes(boolean loadAdditionalAttributes) Sets whether the parser should load all additional attributes as well.
-
Constructor Details
-
LayoutControlFactory
public LayoutControlFactory()
-
-
Method Details
-
createLayoutControl
public AndroidLayoutControl createLayoutControl(String layoutFile, soot.SootClass layoutClass, AXmlNode node) -
applyAttributes
-
createLayoutControl
Creates an empty layout control that corresponds to the given class- Parameters:
layoutClass- The layout class in Android that implements the control- Returns:
- The newly created layout control
-
setLoadAdditionalAttributes
public void setLoadAdditionalAttributes(boolean loadAdditionalAttributes) Sets whether the parser should load all additional attributes as well. If this option is disabled, it only loads those well-known attributes that influence the data flow analysis.- Parameters:
loadAdditionalAttributes- True to load all attributes present in the layout XML files, false to only load the ones required for FlowDroid.
-
isAndroidNamespace
Checks whether the given namespace belongs to the Android operating system- Parameters:
ns- The namespace to check- Returns:
- True if the namespace belongs to Android, otherwise false
-