public class Pruner extends Object
Modifier and Type | Method and Description |
---|---|
static OptimizerStats |
exec(JProgram program,
boolean noSpecialTypes) |
static OptimizerStats |
exec(JProgram program,
boolean noSpecialTypes,
OptimizerContext optimizerCtx) |
static JFieldRef |
transformToNullFieldRef(JFieldRef x,
JProgram program)
Transform a reference to a pruned instance field into a reference to the
null field, which will be used to replace
x . |
static JMethodCall |
transformToNullMethodCall(JMethodCall x,
JProgram program)
Transform a call to a pruned instance method (or static impl) into a call
to the null method, which will be used to replace
x . |
public static OptimizerStats exec(JProgram program, boolean noSpecialTypes, OptimizerContext optimizerCtx)
public static OptimizerStats exec(JProgram program, boolean noSpecialTypes)
public static JFieldRef transformToNullFieldRef(JFieldRef x, JProgram program)
x
.public static JMethodCall transformToNullMethodCall(JMethodCall x, JProgram program)
x
.Copyright © 2018. All rights reserved.