Package soot.jimple.toolkits.scalar
Class MethodStaticnessCorrector
- java.lang.Object
-
- soot.Transformer
-
- soot.BodyTransformer
-
- soot.jimple.toolkits.scalar.AbstractStaticnessCorrector
-
- soot.jimple.toolkits.scalar.MethodStaticnessCorrector
-
public class MethodStaticnessCorrector extends AbstractStaticnessCorrector
Transformer that checks whether an instance method is used like a static method, and can easily be made static, i.e., does not reference any field or method in the "this" object. In this case, we make the method static, so that it complies with the invocations. Attention: This is not really a body transformer. It checks the current body, but modifies the invocation target.- Author:
- Steven Arzt
-
-
Constructor Summary
Constructors Constructor Description MethodStaticnessCorrector(Singletons.Global g)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinternalTransform(Body b, String phaseName, Map<String,String> options)This method is called to perform the transformation itself.static MethodStaticnessCorrectorv()-
Methods inherited from class soot.jimple.toolkits.scalar.AbstractStaticnessCorrector
isClassLoaded, isTypeLoaded
-
Methods inherited from class soot.BodyTransformer
transform, transform, transform
-
-
-
-
Constructor Detail
-
MethodStaticnessCorrector
public MethodStaticnessCorrector(Singletons.Global g)
-
-
Method Detail
-
v
public static MethodStaticnessCorrector v()
-
internalTransform
protected void internalTransform(Body b, String phaseName, Map<String,String> options)
Description copied from class:BodyTransformerThis method is called to perform the transformation itself. It is declared abstract; subclasses must implement this method by making it the entry point to their actual Body transformation.- Specified by:
internalTransformin classBodyTransformer- Parameters:
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.
-
-