Package org.pitest.bytecode.analysis
Class MethodMatchers
- java.lang.Object
-
- org.pitest.bytecode.analysis.MethodMatchers
-
public class MethodMatchers extends Object
-
-
Constructor Summary
Constructors Constructor Description MethodMatchers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Predicate<MethodTree>forLocation(Location location)static Predicate<MethodTree>named(String name)Match a method based on its name, as methods can be overloaded this should be used with caution.
-
-
-
Method Detail
-
named
public static Predicate<MethodTree> named(String name)
Match a method based on its name, as methods can be overloaded this should be used with caution.- Parameters:
name- the methods name- Returns:
- true if matched
-
forLocation
public static Predicate<MethodTree> forLocation(Location location)
-
-