Class ReadOnlyListViewAnalysis
java.lang.Object
soot.jimple.infoflow.collections.analyses.ReadOnlyListViewAnalysis
Intraprocedural analysis that reasons whether a list view (i.e. iterator or
sublist) modifies the list.
- Author:
- Tim Lange
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReadOnlyIterator(soot.Unit unit) Checks whether this assignment creates an iterator that is only used to read values but never mutates the underlying collection
-
Constructor Details
-
ReadOnlyListViewAnalysis
- Throws:
IllegalStateException
-
-
Method Details
-
isReadOnlyIterator
public boolean isReadOnlyIterator(soot.Unit unit) Checks whether this assignment creates an iterator that is only used to read values but never mutates the underlying collection- Parameters:
unit- current unit- Returns:
- true if iterator is read-only
-