public interface

IJMasterOptimizer

com.pnfsoftware.jeb.core.units.code.java.IJMasterOptimizer

Class Overview

A manager of AST optimizers. A master optimizer (MO) orchestrates and executes optimizers. This class is currently not meant to be implemented by third-party code.

Implementation note: the master optimizer may call optimizers repeatedly until no more optimizations are performed.

Summary

Public Methods
abstract boolean add(IJOptimizer optimizer)
Register an optimizer.
abstract IJavaDecompilableElement getTarget()
Retrieve the target AST element to be optimized.
abstract boolean isEnableUnsafeOptimizers()
This method is deprecated. No replacement.
abstract boolean isSafeMode()
Determine whether safe mode is enabled.
abstract int perform()
Perform optimizations on the target.
abstract boolean remove(IJOptimizer optimizer)
Unregister an optimizer.
abstract void setEnableUnsafeOptimizers(boolean enabled)
This method is deprecated. No replacement.
abstract void setSafeMode(boolean enabled)
Enable or disable safe mode.

Public Methods

public abstract boolean add (IJOptimizer optimizer)

Register an optimizer.

public abstract IJavaDecompilableElement getTarget ()

Retrieve the target AST element to be optimized.

public abstract boolean isEnableUnsafeOptimizers ()

This method is deprecated.
No replacement.

public abstract boolean isSafeMode ()

Determine whether safe mode is enabled. In safe mode, the only optimizers that are run are those whose type is NORMAL.

public abstract int perform ()

Perform optimizations on the target.

Returns
  • the number of optimizations performed

public abstract boolean remove (IJOptimizer optimizer)

Unregister an optimizer.

public abstract void setEnableUnsafeOptimizers (boolean enabled)

This method is deprecated.
No replacement.

public abstract void setSafeMode (boolean enabled)

Enable or disable safe mode. In safe mode, the only optimizers that are run are those whose type is NORMAL.