Class PatternMatcher


  • public class PatternMatcher
    extends java.lang.Object
    Describes a pattern to match on a list of ASM instructions.
    • Method Detail

      • find

        public InsnSequence find​(org.objectweb.asm.tree.MethodNode node)
        Tries to match the given pattern on a given MethodNode.
        Parameters:
        node - the MethodNode 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