Package soot.jimple.toolkits.pointer
Class MethodRWSet
- java.lang.Object
-
- soot.jimple.toolkits.pointer.RWSet
-
- soot.jimple.toolkits.pointer.MethodRWSet
-
- Direct Known Subclasses:
CodeBlockRWSet
public class MethodRWSet extends RWSet
Represents the read or write set of a statement.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancallsNativeMap<Object,PointsToSet>fieldsSet<SootField>globalsprotected booleanisFullstatic intMAX_SIZE
-
Constructor Summary
Constructors Constructor Description MethodRWSet()
-
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<SootField>getGlobals()Returns an iterator over any globals read/written.booleanhasNonEmptyIntersection(RWSet oth)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
-
MAX_SIZE
public static final int MAX_SIZE
- See Also:
- Constant Field Values
-
fields
public Map<Object,PointsToSet> fields
-
callsNative
protected boolean callsNative
-
isFull
protected boolean isFull
-
-
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<SootField> 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 oth)
- 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
-
-