Class AndroidMethod
java.lang.Object
soot.jimple.infoflow.data.AbstractMethodAndClass
soot.jimple.infoflow.data.SootMethodAndClass
soot.jimple.infoflow.android.data.AndroidMethod
Class representing a single method in the Android SDK
- Author:
- Steven Arzt, Siegfried Rasthofer, Daniel Magin, Joern Tillmanns
-
Field Summary
Fields inherited from class soot.jimple.infoflow.data.AbstractMethodAndClass
className, methodName, parameters, returnType -
Constructor Summary
ConstructorsConstructorDescriptionAndroidMethod(String methodName, String returnType, String className) AndroidMethod(String methodName, List<String> parameters, String returnType, String className, Set<String> permissions) AndroidMethod(SootMethodAndClass methodAndClass) AndroidMethod(soot.SootMethod sm) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPermission(String permission) static AndroidMethodcreateFromSignature(String signature) Static method to create AndroidMethod from Soot method signaturebooleanGets whether this method is configured as a source or sinkinthashCode()booleanGets whether this method has been annotated as a source, sink or neither nor.voidsetSourceSinkType(SourceSinkType sourceSinkType) toString()Methods inherited from class soot.jimple.infoflow.data.SootMethodAndClass
fromMethodMethods inherited from class soot.jimple.infoflow.data.AbstractMethodAndClass
getClassName, getMethodName, getParameters, getReturnType, getSignature, getSubSignature
-
Constructor Details
-
AndroidMethod
-
AndroidMethod
-
AndroidMethod
-
AndroidMethod
public AndroidMethod(soot.SootMethod sm) -
AndroidMethod
-
-
Method Details
-
getPermissions
-
setSourceSinkType
-
addPermission
-
toString
- Overrides:
toStringin classSootMethodAndClass
-
getSignatureAndPermissions
-
isAnnotated
public boolean isAnnotated()Gets whether this method has been annotated as a source, sink or neither nor.- Returns:
- True if there is an annotations for this method, otherwise false.
-
getSourceSinkType
Gets whether this method is configured as a source or sink- Returns:
- The source/sink definition for this method
-
createFromSignature
Static method to create AndroidMethod from Soot method signature- Parameters:
signature- The Soot method signature- Returns:
- The new AndroidMethod object
-
hashCode
public int hashCode()- Overrides:
hashCodein classSootMethodAndClass
-
equals
- Overrides:
equalsin classSootMethodAndClass
-