public class PatternMatcher
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PatternMatcher.Builder
The Builder object for
PatternMatcher . |
Modifier and Type | Method and Description |
---|---|
static PatternMatcher.Builder |
builder() |
InsnSequence |
find(org.objectweb.asm.tree.AbstractInsnNode node)
Tries to match the given pattern starting from a given node.
|
InsnSequence |
find(org.objectweb.asm.tree.MethodNode node)
Tries to match the given pattern on a given
MethodNode . |
public static PatternMatcher.Builder builder()
PatternMatcher
public InsnSequence find(org.objectweb.asm.tree.MethodNode node)
MethodNode
.node
- the MethodNode
to searchpublic InsnSequence find(org.objectweb.asm.tree.AbstractInsnNode node)
node
- the node to start the search onInsnSequence
object representing the matched pattern