Class OverridingBodySource

java.lang.Object
sootup.core.frontend.OverridingBodySource
All Implemented Interfaces:
BodySource

public class OverridingBodySource extends Object implements BodySource
Allows for replacing specific parts of a method or, resolve methods where all information is already existing.

When replacing specific parts of a method by default, it delegates to the BodySource delegate provided in the constructor.

To alter the results of invocations to e.g. resolveBody(Iterable), simply call withBody(Body) to obtain a new OverridingBodySource. The new instance will then use the supplied value instead of calling resolveBody(Iterable) on the delegate.