Package sootup.apk.frontend.interceptors
Class AbstractNullTransformer
java.lang.Object
sootup.apk.frontend.interceptors.DexTransformer
sootup.apk.frontend.interceptors.AbstractNullTransformer
- All Implemented Interfaces:
BodyInterceptor
- Direct Known Subclasses:
DexNullTransformer
Abstract base class for
DexNullTransformer- Author:
- Palaniappan Muthuraman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanprotected booleanExamine expr if it is a comparison with 0.protected StmtreplaceWithNull(Stmt stmt) Replaces 0 with null in the given statement.Methods inherited from class sootup.apk.frontend.interceptors.DexTransformer
examineInvokeExpr, findArrayType, isFloatingPointLikeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sootup.core.interceptor.BodyInterceptor
interceptBody
-
Constructor Details
-
AbstractNullTransformer
public AbstractNullTransformer()
-
-
Method Details
-
isZeroComparison
Examine expr if it is a comparison with 0.- Parameters:
expr- the ConditionExpr to examine
-
replaceWithNull
Replaces 0 with null in the given statement. Statements are immutable, so the caller has to put the returned statement into the body in place of the given one.- Parameters:
stmt- the statement where 0 will be replaced with null.- Returns:
- the statement with null instead of 0, or the given statement if there is no 0 to replace
-
isObject
-