Class AndroidLayoutControl

java.lang.Object
soot.jimple.infoflow.resources.controls.LayoutControl
soot.jimple.infoflow.android.resources.controls.AndroidLayoutControl
Direct Known Subclasses:
EditTextControl, GenericLayoutControl

public abstract class AndroidLayoutControl extends LayoutControl
Data class representing a layout control on the android screen
Author:
Steven Arzt
  • Field Details

    • id

      protected int id
    • viewClass

      protected soot.SootClass viewClass
    • clickListener

      protected String clickListener
  • Constructor Details

    • AndroidLayoutControl

      public AndroidLayoutControl(int id, soot.SootClass viewClass)
    • AndroidLayoutControl

      public AndroidLayoutControl(int id, soot.SootClass viewClass, Map<String,Object> additionalAttributes)
  • Method Details

    • getID

      public int getID()
    • getViewClass

      public soot.SootClass getViewClass()
    • addAdditionalAttribute

      public void addAdditionalAttribute(String key, String value)
      Adds an additional attribute to this layout control
      Parameters:
      key - The key of the attribute
      value - The value of the attribute
    • getClickListener

      public String getClickListener()
      Gets the handler for user clicks
      Returns:
      The name of the click handler if one exists, otherwise null
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
      Gets the additional attributes associated with this layout control
      Returns:
      The additional attributes associated with this layout control
    • isActionListener

      protected boolean isActionListener(String name)
      Checks whether this name is the name of a well-known Android listener attribute. This is a function to allow for future extension.
      Parameters:
      name - The attribute name to check. This name is guaranteed to be in the android namespace.
      Returns:
      True if the given attribute name corresponds to a listener, otherwise false.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object