Package soot.jimple.toolkits.pointer
Class StmtRWSet
- java.lang.Object
-
- soot.jimple.toolkits.pointer.RWSet
-
- soot.jimple.toolkits.pointer.StmtRWSet
-
public class StmtRWSet extends RWSet
Represents the read or write set of a statement.
-
-
Field Summary
Fields Modifier and Type Field Description protected PointsToSetbaseprotected booleancallsNativeprotected Objectfield
-
Constructor Summary
Constructors Constructor Description StmtRWSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddFieldRef(PointsToSet otherBase, Object field)booleanaddGlobal(SootField global)PointsToSetgetBaseForField(Object f)Returns a set of base objects whose field f is read/written.booleangetCallsNative()Set<Object>getFields()Returns an iterator over any fields read/written.Set<Object>getGlobals()Returns an iterator over any globals read/written.booleanhasNonEmptyIntersection(RWSet other)booleanisEquivTo(RWSet other)booleansetCallsNative()intsize()Returns an iterator over any globals read/written.StringtoString()booleanunion(RWSet other)Adds the RWSet other into this set.
-
-
-
Field Detail
-
field
protected Object field
-
base
protected PointsToSet base
-
callsNative
protected boolean callsNative
-
-
Method Detail
-
size
public int size()
Description copied from class:RWSetReturns an iterator over any globals read/written.
-
getCallsNative
public boolean getCallsNative()
- Specified by:
getCallsNativein classRWSet
-
setCallsNative
public boolean setCallsNative()
- Specified by:
setCallsNativein classRWSet
-
getGlobals
public Set<Object> getGlobals()
Returns an iterator over any globals read/written.- Specified by:
getGlobalsin classRWSet
-
getBaseForField
public PointsToSet getBaseForField(Object f)
Returns a set of base objects whose field f is read/written.- Specified by:
getBaseForFieldin classRWSet
-
hasNonEmptyIntersection
public boolean hasNonEmptyIntersection(RWSet other)
- Specified by:
hasNonEmptyIntersectionin classRWSet
-
union
public boolean union(RWSet other)
Adds the RWSet other into this set.
-
addFieldRef
public boolean addFieldRef(PointsToSet otherBase, Object field)
- Specified by:
addFieldRefin classRWSet
-
-