Class PatternMatcher

java.lang.Object
ftbsc.lll.utils.PatternMatcher

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

    • builder

      public static PatternMatcher.Builder 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 given MethodNode.
      Parameters:
      node - the MethodNode to search
      Returns:
      the InsnList object 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 InsnList object representing the matched pattern