/** * Checks if the {@link MethodType} matches the the {@link MethodSensorAssignment}. * * @param methodSensorAssignment * {@link MethodSensorAssignment}. * @param methodType * method type to check * @return <code>true</code> if the method matches the {@link MethodSensorAssignment} */ public boolean matches(MethodSensorAssignment methodSensorAssignment, ImmutableMethodType methodType) { if (!matchesMethodName(methodSensorAssignment, methodType)) { return false; } if (!matchesParameters(methodSensorAssignment, methodType)) { return false; } if (!matchesModifiers(methodSensorAssignment, methodType)) { return false; } if (!matchesAnnotation(methodSensorAssignment, methodType)) { return false; } return true; }