public class NopEliminator extends BodyTransformer
Constructor and Description |
---|
NopEliminator(Singletons.Global g) |
Modifier and Type | Method and Description |
---|---|
protected void |
internalTransform(Body b,
String phaseName,
Map<String,String> options)
Removes
NopStmt s from the passed body (which must be
a JimpleBody ). |
static NopEliminator |
v() |
transform, transform, transform
public NopEliminator(Singletons.Global g)
public static NopEliminator v()
protected void internalTransform(Body b, String phaseName, Map<String,String> options)
NopStmt
s from the passed body (which must be
a JimpleBody
). Complexity is linear
with respect to the statements.internalTransform
in class BodyTransformer
b
- the body on which to apply the transformationphaseName
- the phasename for this transform; not typically used by implementations.options
- the actual computed options; a combination of default options and Scene specified options.