Package soot.toolkits.scalar
Interface LocalDefs
-
- All Known Subinterfaces:
CombinedAnalysis
- All Known Implementing Classes:
CombinedDUAnalysis,DexDefUseAnalysis,ShimpleLocalDefs,SimpleLocalDefs,SimpleLocalDefs.FlowAssignment,SimpleLocalDefs.StaticSingleAssignment,SmartLocalDefs
public interface LocalDefsProvides an interface for querying for the definitions of a Local at a given Unit in a method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Unit>getDefsOf(Local l)Returns the definition sites for a Local merged over all points in a method.List<Unit>getDefsOfAt(Local l, Unit s)Returns the definition sites for a Local at a certain point (Unit) in a method.
-
-
-
Method Detail
-
getDefsOfAt
List<Unit> getDefsOfAt(Local l, Unit s)
Returns the definition sites for a Local at a certain point (Unit) in a method. You can assume this method never returnsnull.- Parameters:
l- the Local in question.s- a unit that specifies the method context (location) to query for the definitions of the Local.- Returns:
- a list of Units where the local is defined in the current method context. If there are no uses an empty list will returned.
-
getDefsOf
List<Unit> getDefsOf(Local l)
Returns the definition sites for a Local merged over all points in a method. You can assume this method never returnsnull.- Parameters:
l- the Local in question.- Returns:
- a list of Units where the local is defined in the current method context. If there are no uses an empty list will returned.
-
-