Class AbstractNullTransformer

java.lang.Object
sootup.apk.frontend.interceptors.DexTransformer
sootup.apk.frontend.interceptors.AbstractNullTransformer
All Implemented Interfaces:
BodyInterceptor
Direct Known Subclasses:
DexNullTransformer

public abstract class AbstractNullTransformer extends DexTransformer
Abstract base class for DexNullTransformer
Author:
Palaniappan Muthuraman
  • Constructor Details

    • AbstractNullTransformer

      public AbstractNullTransformer()
  • Method Details

    • isZeroComparison

      protected boolean isZeroComparison(AbstractConditionExpr expr)
      Examine expr if it is a comparison with 0.
      Parameters:
      expr - the ConditionExpr to examine
    • replaceWithNull

      protected Stmt replaceWithNull(Stmt stmt)
      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

      protected static boolean isObject(Type t)