public class

AbstractDInstrumenter

extends Object
implements IDMasterOptimizerInstrumenter
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.android.ir.AbstractDInstrumenter

Class Overview

Skeleton for an IR Master Optimizer instrumenter.

Summary

Public Constructors
AbstractDInstrumenter()
Public Methods
int afterFailedPass(IDOptimizer opt, IDMethodContext ctx, Exception ex)
The default implementation returns 0 (proceed).
int afterPass(IDOptimizer opt, IDMethodContext ctx, int optcnt)
The default implementation returns 0 (proceed).
int beforePass(IDOptimizer opt, IDMethodContext ctx)
The default implementation returns 0 (proceed).
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.units.code.android.ir.IDMasterOptimizerInstrumenter

Public Constructors

public AbstractDInstrumenter ()

Public Methods

public int afterFailedPass (IDOptimizer opt, IDMethodContext ctx, Exception ex)

The default implementation returns 0 (proceed).

Parameters
opt the method optimizer
ctx the IR context
ex the exception that was thrown by the optimizer
Returns
  • 0=no control code, let a subsequent instrumenter decide; -1=stop the entire optimization process

public int afterPass (IDOptimizer opt, IDMethodContext ctx, int optcnt)

The default implementation returns 0 (proceed).

Parameters
opt the method optimizer
ctx the IR context
optcnt the number of optimizations performed; may be 0
Returns
  • 0=no control code, let a subsequent instrumenter decide; -1=stop the entire optimization process

public int beforePass (IDOptimizer opt, IDMethodContext ctx)

The default implementation returns 0 (proceed).

Parameters
opt the method optimizer
ctx the IR context
Returns
  • 0=no control code, let a subsequent instrumenter decide; -1=stop the entire optimization process; 1=skip this optimizer