Beispiel #1
0
 public void caseClassConstant(ClassConstant c) {
   // "array class" types are unmodified
   boolean classIsArray = c.value.startsWith("[");
   String className = classIsArray ? c.value : SootToDexUtils.getDexClassName(c.value);
   TypeIdItem referencedClass = TypeIdItem.internTypeIdItem(stmtV.getBelongingFile(), className);
   stmtV.addInsn(new Insn21c(Opcode.CONST_CLASS, destinationReg, referencedClass));
 }
Beispiel #2
0
 public void caseStringConstant(StringConstant s) {
   StringIdItem referencedString =
       StringIdItem.internStringIdItem(stmtV.getBelongingFile(), s.value);
   stmtV.addInsn(new Insn21c(Opcode.CONST_STRING, destinationReg, referencedString));
 }