1/*
2 * Copyright (c) 2007 Mockito contributors
3 * This program is made available under the terms of the MIT License.
4 */
5package org.mockito.internal.matchers;
6
7import org.mockito.ArgumentMatcher;
8import org.mockito.internal.debugging.LocationImpl;
9import org.mockito.invocation.Location;
10
11@SuppressWarnings("unchecked")
12public class LocalizedMatcher {
13
14    private final ArgumentMatcher<?> matcher;
15    private final Location location;
16
17    public LocalizedMatcher(ArgumentMatcher<?> matcher) {
18        this.matcher = matcher;
19        this.location = new LocationImpl();
20    }
21
22    public Location getLocation() {
23        return location;
24    }
25
26    public ArgumentMatcher<?> getMatcher() {
27        return matcher;
28    }
29}
30