public class DexArrayInitDetector extends Object
| Constructor and Description |
|---|
DexArrayInitDetector() |
| Modifier and Type | Method and Description |
|---|---|
void |
constructArrayInitializations(Body body)
Constructs packed array initializations from the individual element assignments in the given body
|
void |
fixTraps(Body activeBody)
Fixes the traps in the given body to account for assignments to individual array elements being replaced by a single
fill instruction.
|
Set<Unit> |
getIgnoreUnits() |
List<Value> |
getValuesForArrayInit(Unit arrayInit) |
void |
setMinimumArrayLength(int l)
Sets the minimum array length to consider
Only arrays with more than this number of elements will be identified, because we only need to handle those explicitly.
|
public void constructArrayInitializations(Body body)
body - The body in which to look for element assignmentspublic void setMinimumArrayLength(int l)
l - the minimum length of arrayspublic void fixTraps(Body activeBody)
activeBody - The body in which to fix the trapsCopyright © 2020 Soot OSS. All rights reserved.