Interface PatternMatcher

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface PatternMatcher
    Functional interface for pattern matching on IR instructions.
    • Method Detail

      • matches

        boolean matches​(IRInstruction instruction,
                        IRMethod method,
                        MethodEntry sourceMethod,
                        ClassFile classFile)
        Tests if the given instruction matches this pattern.
        Parameters:
        instruction - the instruction to test
        method - the containing IR method
        sourceMethod - the source method entry
        classFile - the containing class file
        Returns:
        true if the instruction matches the pattern