Class LayoutControlFactory

java.lang.Object
soot.jimple.infoflow.android.resources.controls.LayoutControlFactory

public class LayoutControlFactory extends Object
Factory class for creating Android layout controls
Author:
Steven Arzt
  • Constructor Details

    • LayoutControlFactory

      public LayoutControlFactory()
  • Method Details

    • createLayoutControl

      public AndroidLayoutControl createLayoutControl(String layoutFile, soot.SootClass layoutClass, AXmlNode node)
    • applyAttributes

      protected void applyAttributes(AXmlNode node, AndroidLayoutControl lc)
    • createLayoutControl

      protected AndroidLayoutControl createLayoutControl(soot.SootClass layoutClass)
      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

      protected boolean isAndroidNamespace(String ns)
      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