Package com.tonic.analysis.ssa.transform
Class MethodInlining
- java.lang.Object
-
- com.tonic.analysis.ssa.transform.MethodInlining
-
- All Implemented Interfaces:
ClassTransform
public class MethodInlining extends Object implements ClassTransform
A class-level transform that replaces calls to private, final, and static methods with the callee's body.
-
-
Constructor Summary
Constructors Constructor Description MethodInlining()
-
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
-
-