Class FieldInstruction

    • Constructor Detail

      • FieldInstruction

        public FieldInstruction​(org.jf.dexlib2.iface.instruction.Instruction instruction,
                                int codeAdress)
    • Method Detail

      • getStaticSootFieldRef

        protected SootFieldRef getStaticSootFieldRef​(org.jf.dexlib2.iface.reference.FieldReference fref)
        Return a static SootFieldRef for a dexlib FieldReference.
        Parameters:
        item - the dexlib FieldReference.
      • getSootFieldRef

        protected SootFieldRef getSootFieldRef​(org.jf.dexlib2.iface.reference.FieldReference fref)
        Return a SootFieldRef for a dexlib FieldReference.
        Parameters:
        item - the dexlib FieldReference.
      • getAssignStmt

        protected AssignStmt getAssignStmt​(DexBody body,
                                           Local sourceValue,
                                           ConcreteRef instanceField)
        Check if the field type equals the type of the value that will be stored in the field. A cast expression has to be introduced for the unequal case.
        Returns:
        assignment statement which hold a cast or not depending on the types of the operation
      • getTargetType

        protected Type getTargetType​(DexBody body)
        Return the target type for put instructions. Putters should override this.
        Parameters:
        body - the body containing this instruction