Package com.tonic.analysis.pattern
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmatches(IRInstruction instruction, IRMethod method, MethodEntry sourceMethod, ClassFile classFile)Tests if the given instruction matches this pattern.
-
-
-
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 testmethod- the containing IR methodsourceMethod- the source method entryclassFile- the containing class file- Returns:
- true if the instruction matches the pattern
-
-