Package ftbsc.lll.utils
Class PatternMatcher
- java.lang.Object
-
- ftbsc.lll.utils.PatternMatcher
-
public class PatternMatcher extends java.lang.Object
Describes a pattern to match on a list of ASM instructions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PatternMatcher.Builder
The Builder object forPatternMatcher
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 givenMethodNode
.
-
-
-
Method Detail
-
builder
public static PatternMatcher.Builder builder()
- Returns:
- the Builder object for this
PatternMatcher
-
find
public InsnSequence find(org.objectweb.asm.tree.MethodNode node)
Tries to match the given pattern on a givenMethodNode
.- Parameters:
node
- theMethodNode
to search- Returns:
- the InsnSequence object representing the matched pattern
-
find
public InsnSequence 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
InsnSequence
object representing the matched pattern
-
-