Class ConditionalJumpInstruction

    • Constructor Detail

      • ConditionalJumpInstruction

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

      • ifStatement

        protected abstract IfStmt ifStatement​(DexBody body)
        Return an if statement depending on the instruction.
      • deferredJimplify

        public void deferredJimplify​(DexBody body)
        Description copied from interface: DeferableInstruction
        Jimplify this instruction with the guarantee that every other (non-deferred) instruction has been jimplified.
        Specified by:
        deferredJimplify in interface DeferableInstruction
        Parameters:
        body - to jimplify into
      • getComparisonExpr

        protected ConditionExpr getComparisonExpr​(DexBody body,
                                                  int reg)
        Get comparison expression depending on opcode against zero or null. If the register is used as an object this will create a comparison with null, not zero.
        Parameters:
        body - the containing DexBody
        reg - the register to compare against zero.
      • getComparisonExpr

        protected ConditionExpr getComparisonExpr​(Immediate one,
                                                  Immediate other)
        Get comparison expression depending on opcode between two immediates
        Parameters:
        one - first immediate
        other - second immediate
        Throws:
        RuntimeException - if this is not a IfTest or IfTestz instruction.