public class CastAndInstanceofEliminator
extends soot.BodyTransformer
Modifier and Type | Method and Description |
---|---|
static void |
eliminateCastsAndInstanceOf(soot.Body body,
java.lang.String phaseName,
java.util.Set unsafeLocalSet,
boolean debug) |
java.lang.String |
getDeclaredOptions() |
protected void |
internalTransform(soot.Body b,
java.lang.String phaseName,
java.util.Map options) |
static void |
replaceCast(soot.ValueBox box,
soot.Hierarchy hierarchy,
soot.Type checkType,
soot.Value op,
soot.Type opType,
boolean debug)
Remove the case in the given box,
if possible.
|
static void |
replaceInstanceofCheck(soot.ValueBox box,
soot.Hierarchy hierarchy,
soot.Type checkType,
soot.Type opType,
boolean debug)
Statically evaluate the instance of Check in the given box,
if possible.
|
static CastAndInstanceofEliminator |
v() |
public static CastAndInstanceofEliminator v()
public java.lang.String getDeclaredOptions()
protected void internalTransform(soot.Body b, java.lang.String phaseName, java.util.Map options)
internalTransform
in class soot.BodyTransformer
public static void eliminateCastsAndInstanceOf(soot.Body body, java.lang.String phaseName, java.util.Set unsafeLocalSet, boolean debug)
public static void replaceInstanceofCheck(soot.ValueBox box, soot.Hierarchy hierarchy, soot.Type checkType, soot.Type opType, boolean debug)
public static void replaceCast(soot.ValueBox box, soot.Hierarchy hierarchy, soot.Type checkType, soot.Value op, soot.Type opType, boolean debug)