soot.baf.toolkits.base
Interface Peephole

All Known Implementing Classes:
ExamplePeephole

public interface Peephole

Interface to be implemented by peepholes acting on the Baf IR.

See Also:
PeepholeOptimizer, ExamplePeephole

Method Summary
 boolean apply(Body b)
          Entry point for a peephole.
 

Method Detail

apply

boolean apply(Body b)
Entry point for a peephole. This method is repeatly called by the peephole driver, until a fixed-point is reached over all peepholes.

Parameters:
b - Body to apply peephole to.
Returns:
true if the peephole changed in any way the Body it acted on. false otherwise.