Class AndroidLayoutControl
java.lang.Object
soot.jimple.infoflow.resources.controls.LayoutControl
soot.jimple.infoflow.android.resources.controls.AndroidLayoutControl
- Direct Known Subclasses:
EditTextControl,GenericLayoutControl
Data class representing a layout control on the android screen
- Author:
- Steven Arzt
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAndroidLayoutControl(int id, soot.SootClass viewClass) AndroidLayoutControl(int id, soot.SootClass viewClass, Map<String, Object> additionalAttributes) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalAttribute(String key, String value) Adds an additional attribute to this layout controlbooleanGets the additional attributes associated with this layout controlGets the handler for user clicksintgetID()soot.SootClassinthashCode()protected booleanisActionListener(String name) Checks whether this name is the name of a well-known Android listener attribute.toString()Methods inherited from class soot.jimple.infoflow.resources.controls.LayoutControl
getSourceDefinition, isSensitive
-
Field Details
-
id
protected int id -
viewClass
protected soot.SootClass viewClass -
clickListener
-
-
Constructor Details
-
AndroidLayoutControl
public AndroidLayoutControl(int id, soot.SootClass viewClass) -
AndroidLayoutControl
-
-
Method Details
-
getID
public int getID() -
getViewClass
public soot.SootClass getViewClass() -
addAdditionalAttribute
Adds an additional attribute to this layout control- Parameters:
key- The key of the attributevalue- The value of the attribute
-
getClickListener
Gets the handler for user clicks- Returns:
- The name of the click handler if one exists, otherwise null
-
getAdditionalAttributes
Gets the additional attributes associated with this layout control- Returns:
- The additional attributes associated with this layout control
-
isActionListener
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
-
hashCode
public int hashCode() -
equals
-