Package soot.dexpler
Class AbstractNullTransformer
- java.lang.Object
-
- soot.Transformer
-
- soot.BodyTransformer
-
- soot.dexpler.DexTransformer
-
- soot.dexpler.AbstractNullTransformer
-
- Direct Known Subclasses:
DexIfTransformer,DexNullTransformer
public abstract class AbstractNullTransformer extends DexTransformer
Abstract base class forDexNullTransformerandDexIfTransformer.- Author:
- Steven Arzt
-
-
Constructor Summary
Constructors Constructor Description AbstractNullTransformer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static booleanisObject(Type t)protected booleanisZeroComparison(ConditionExpr expr)Examine expr if it is a comparison with 0.protected voidreplaceWithNull(Unit u)Replace 0 with null in the given unit.-
Methods inherited from class soot.dexpler.DexTransformer
collectDefinitionsWithAliases, findArrayType
-
Methods inherited from class soot.BodyTransformer
internalTransform, transform, transform, transform
-
-
-
-
Method Detail
-
isZeroComparison
protected boolean isZeroComparison(ConditionExpr expr)
Examine expr if it is a comparison with 0.- Parameters:
expr- the ConditionExpr to examine
-
replaceWithNull
protected void replaceWithNull(Unit u)
Replace 0 with null in the given unit.- Parameters:
u- the unit where 0 will be replaced with null.
-
isObject
protected static boolean isObject(Type t)
-
-