Package ftbsc.lll.utils
Class PatternMatcher
java.lang.Object
ftbsc.lll.utils.PatternMatcher
Describes a pattern to match on a list of ASM instructions.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PatternMatcher.Builderbuilder()org.objectweb.asm.tree.InsnListfind(org.objectweb.asm.tree.AbstractInsnNode node) Tries to match the given pattern starting from a given node.org.objectweb.asm.tree.InsnListfind(org.objectweb.asm.tree.MethodNode node) Tries to match the given pattern on a givenMethodNode.
-
Method Details
-
builder
- Returns:
- the Builder object for this
PatternMatcher
-
find
public org.objectweb.asm.tree.InsnList find(org.objectweb.asm.tree.MethodNode node) Tries to match the given pattern on a givenMethodNode.- Parameters:
node- theMethodNodeto search- Returns:
- the
InsnListobject representing the matched pattern
-
find
public org.objectweb.asm.tree.InsnList find(org.objectweb.asm.tree.AbstractInsnNode node) Tries to match the given pattern starting from a given node.- Parameters:
node- the node to start the search on- Returns:
- the
InsnListobject representing the matched pattern
-