public abstract class AbstractMarker extends java.lang.Object implements Marker
AbstractMarker eases the effort to implement new marker by providing mark method returning MarkedRegion class instead of Shadow. The MarkedRegion class itself supports automatic computation of weaving region based on simplified region specification.
Modifier and Type | Class and Description |
---|---|
static class |
AbstractMarker.MarkedRegion
The class specifies marked region.
|
Constructor and Description |
---|
AbstractMarker() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Shadow> |
mark(org.objectweb.asm.tree.ClassNode classNode,
org.objectweb.asm.tree.MethodNode methodNode,
ch.usi.dag.disl.snippet.Snippet snippet)
Returns shadows for the marked method.
|
abstract 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.
|
public java.util.List<Shadow> mark(org.objectweb.asm.tree.ClassNode classNode, org.objectweb.asm.tree.MethodNode methodNode, ch.usi.dag.disl.snippet.Snippet snippet) throws ch.usi.dag.disl.exception.MarkerException
Marker
Returns shadows for the marked method.
public abstract java.util.List<AbstractMarker.MarkedRegion> mark(org.objectweb.asm.tree.MethodNode methodNode)
methodNode
- method node of the marked class