Package com.tonic.analysis.ssa.transform
Class DeadMethodElimination
- java.lang.Object
-
- com.tonic.analysis.ssa.transform.DeadMethodElimination
-
- All Implemented Interfaces:
ClassTransform
public class DeadMethodElimination extends Object implements ClassTransform
Dead method elimination optimization.
-
-
Constructor Summary
Constructors Constructor Description DeadMethodElimination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Gets the name of this transformation.booleanrun(ClassFile classFile, SSA ssa)Runs the transformation on the specified class.
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:ClassTransformGets the name of this transformation.- Specified by:
getNamein interfaceClassTransform- Returns:
- the transformation name
-
run
public boolean run(ClassFile classFile, SSA ssa)
Description copied from interface:ClassTransformRuns the transformation on the specified class.- Specified by:
runin interfaceClassTransform- Parameters:
classFile- the class file to transformssa- the SSA processor for lifting/lowering methods- Returns:
- true if the class was modified
-
-