Class DexCastExpr

java.lang.Object
sootup.core.jimple.common.expr.JCastExpr
sootup.apk.frontend.main.DexCastExpr
All Implemented Interfaces:
EquivTo, Expr, Value, JimpleIR, Acceptor<ExprVisitor>

public class DexCastExpr extends JCastExpr
A cast of a dex conversion instruction, which also names the type it converts from, e.g. float-to-int. Dex constants are untyped: the 32 bits of const are an int or a float depending on their uses, and a conversion may be the only use that tells. Jimple's cast only keeps the target type, so the source type is kept here for the dex transformers, as Soot's dexpler keeps it in an operation tag. Otherwise it is an ordinary cast.
  • Constructor Details

    • DexCastExpr

      public DexCastExpr(@NonNull Immediate op, @NonNull Type type, @NonNull Type sourceType)
  • Method Details