public abstract class

AbstractCOptimizer

extends AbstractOptimizer<T extends IOptimizerTarget>
implements ICOptimizer
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.AbstractPlugin
     ↳ com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.AbstractOptimizer<T extends com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.IOptimizerTarget>
       ↳ com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.opt.AbstractCOptimizer
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Base class for C AST optimizers.

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.IOptimizer
Fields
protected ICConstantFactory cf
protected ICElementFactory ef
protected ICGlobalContext g
protected ICMethod m
protected ICOperatorFactory of
[Expand]
Inherited Fields
From class com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.AbstractOptimizer
Public Constructors
AbstractCOptimizer()
Public Methods
ICMasterOptimizer getMasterOptimizer()
Retrieve the optional master optimizer that manages this optimizer.
final int performOnTarget(ICMethod m)
Protected Methods
ICMasterOptimizer getMasterOptimizerSafe()
Safely retrieve a master optimizer.
abstract int perform()
[Expand]
Inherited Methods
From class com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.AbstractOptimizer
From class com.pnfsoftware.jeb.core.AbstractPlugin
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.IPlugin
From interface com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.IOptimizer

Fields

protected ICConstantFactory cf

protected ICElementFactory ef

protected ICGlobalContext g

protected ICMethod m

protected ICOperatorFactory of

Public Constructors

public AbstractCOptimizer ()

Public Methods

public ICMasterOptimizer getMasterOptimizer ()

Retrieve the optional master optimizer that manages this optimizer.

Returns
  • optional reference

public final int performOnTarget (ICMethod m)

Protected Methods

protected ICMasterOptimizer getMasterOptimizerSafe ()

Safely retrieve a master optimizer. If getMasterOptimizer() provides one, it is returned. Else, an empty immutable generic MO is provided.

Returns
  • never null

protected abstract int perform ()