Class AbstractDInstrumenter
java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.ir.AbstractDInstrumenter
- All Implemented Interfaces:
IDMasterOptimizerInstrumenter
Skeleton for an IR Master Optimizer instrumenter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
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).
-
Constructor Details
-
AbstractDInstrumenter
public AbstractDInstrumenter()
-
-
Method Details
-
beforePass
The default implementation returns 0 (proceed).- Specified by:
beforePass
in interfaceIDMasterOptimizerInstrumenter
- Parameters:
opt
- the method optimizerctx
- the IR context- Returns:
- 0=no control code, let a subsequent instrumenter decide; -1=stop the entire optimization process; 1=skip this optimizer
-
afterPass
The default implementation returns 0 (proceed).- Specified by:
afterPass
in interfaceIDMasterOptimizerInstrumenter
- Parameters:
opt
- the method optimizerctx
- the IR contextoptcnt
- the number of optimizations performed; may be 0- Returns:
- 0=no control code, let a subsequent instrumenter decide; -1=stop the entire optimization process
-
afterFailedPass
The default implementation returns 0 (proceed).- Specified by:
afterFailedPass
in interfaceIDMasterOptimizerInstrumenter
- Parameters:
opt
- the method optimizerctx
- the IR contextex
- the exception that was thrown by the optimizer- Returns:
- 0=no control code, let a subsequent instrumenter decide; -1=stop the entire optimization process
-