Search in sources :

Example 6 with Insn21c

use of soot.toDex.instructions.Insn21c in project soot by Sable.

the class ConstantVisitor method caseClassConstant.

public void caseClassConstant(ClassConstant c) {
    TypeReference referencedClass = new ImmutableTypeReference(c.getValue());
    stmtV.addInsn(new Insn21c(Opcode.CONST_CLASS, destinationReg, referencedClass), origStmt);
}
Also used : Insn21c(soot.toDex.instructions.Insn21c) TypeReference(org.jf.dexlib2.iface.reference.TypeReference) ImmutableTypeReference(org.jf.dexlib2.immutable.reference.ImmutableTypeReference) ImmutableTypeReference(org.jf.dexlib2.immutable.reference.ImmutableTypeReference)

Aggregations

Insn21c (soot.toDex.instructions.Insn21c)6 TypeReference (org.jf.dexlib2.iface.reference.TypeReference)3 Opcode (org.jf.dexlib2.Opcode)2 FieldReference (org.jf.dexlib2.iface.reference.FieldReference)2 StringReference (org.jf.dexlib2.iface.reference.StringReference)1 ImmutableStringReference (org.jf.dexlib2.immutable.reference.ImmutableStringReference)1 ImmutableTypeReference (org.jf.dexlib2.immutable.reference.ImmutableTypeReference)1