public abstract class AbstractDWRMarker extends AbstractMarker
AbstractDWRMarker is an enhancement of AbstractMarker automatically computing weaving region. This includes correct position of end region (not after jump) and meaningful try block.
User has to implement markWithDefaultWeavingReg method.
AbstractMarker.MarkedRegion
Constructor and Description |
---|
AbstractDWRMarker() |
Modifier and Type | Method and Description |
---|---|
java.util.List<AbstractMarker.MarkedRegion> |
mark(org.objectweb.asm.tree.MethodNode methodNode)
Implementation of this method should return list of MarkedRegion with
start, ends end weaving region filled.
|
abstract java.util.List<AbstractMarker.MarkedRegion> |
markWithDefaultWeavingReg(org.objectweb.asm.tree.MethodNode methodNode)
Implementation of this method should return list of marked regions with
filled start and end of the region.
|
mark
public final java.util.List<AbstractMarker.MarkedRegion> mark(org.objectweb.asm.tree.MethodNode methodNode)
AbstractMarker
mark
in class AbstractMarker
methodNode
- method node of the marked classpublic abstract java.util.List<AbstractMarker.MarkedRegion> markWithDefaultWeavingReg(org.objectweb.asm.tree.MethodNode methodNode)
Implementation of this method should return list of marked regions with filled start and end of the region.
The regions will get automatic after throw computation.
The regions will get automatic branch skipping at the end.