/external/hamcrest/integration/src/org/hamcrest/ |
H A D | MatcherAssert.java | 7 public static <T> void assertThat(T actual, Matcher<T> matcher) {
argument 8 assertThat("", actual, matcher);
11 public static <T> void assertThat(String reason, T actual, Matcher<T> matcher) {
argument 12 if (!matcher.matches(actual)) {
16 .appendDescriptionOf(matcher)
|
/external/icu/icu4c/source/i18n/ |
H A D | quant.h | 113 UnicodeFunctor* matcher; // owned member in class:Quantifier
|
/external/proguard/src/proguard/util/ |
H A D | NotMatcher.java | 31 private final StringMatcher matcher; field in class:NotMatcher 34 public NotMatcher(StringMatcher matcher) argument 36 this.matcher = matcher; 44 return !matcher.matches(string);
|
H A D | SettableMatcher.java | 31 private StringMatcher matcher; field in class:SettableMatcher 34 public void setMatcher(StringMatcher matcher) argument 36 this.matcher = matcher; 44 return matcher.matches(string);
|
/external/easymock/src/org/easymock/internal/ |
H A D | ILegacyMatcherMethods.java | 23 void setDefaultMatcher(org.easymock.ArgumentsMatcher matcher);
argument 26 void setMatcher(Method method, org.easymock.ArgumentsMatcher matcher);
argument
|
H A D | LegacyMatcherProvider.java | 48 public void setDefaultMatcher(ArgumentsMatcher matcher) {
argument 52 "default matcher can only be set once directly after creation of the MockControl"));
54 defaultMatcher = matcher;
58 public void setMatcher(Method method, ArgumentsMatcher matcher) {
argument 59 if (matchers.containsKey(method) && matchers.get(method) != matcher) {
66 + "), a matcher has already been set"));
68 matchers.put(method, matcher);
96 for (Map.Entry<Method, ArgumentsMatcher> matcher : matchers.entrySet()) {
97 map.put(new MethodSerializationWrapper(matcher.getKey()), matcher
[all...] |
H A D | ExpectedInvocation.java | 34 private final org.easymock.ArgumentsMatcher matcher;
field in class:ExpectedInvocation 45 org.easymock.ArgumentsMatcher matcher) {
47 this.matcher = matcher;
48 this.matchers = (matcher == null) ? createMissingMatchers(invocation,
77 && ((this.matcher == null && other.matcher == null) || (this.matcher != null && this.matcher
78 .equals(other.matcher)))
43 ExpectedInvocation(Invocation invocation, List<IArgumentMatcher> matchers, @SuppressWarnings(�) org.easymock.ArgumentsMatcher matcher) argument 131 withMatcher(@uppressWarnings�) org.easymock.ArgumentsMatcher matcher) argument [all...] |
/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/line/ |
H A D | ConversionRule.java | 35 * Given replacement rules, replace each capturing group in matcher's pattern 37 * @param matcher 40 public String replace(Matcher matcher); argument
|
H A D | MultiGroupConversionRule.java | 80 public String replace(Matcher matcher) { argument 84 for (int group = 1; group <= matcher.groupCount(); group++) { 88 // + matcher.group(group) + " with " + replacementText); 91 replacementBuffer.append(matcher.group(group));
|
H A D | SingleConversionRule.java | 67 public String replace(Matcher matcher) { argument
|
/external/apache-http/src/org/apache/http/protocol/ |
H A D | HttpRequestHandlerRegistry.java | 58 private final UriPatternMatcher matcher; field in class:HttpRequestHandlerRegistry 61 matcher = new UriPatternMatcher(); 65 matcher.register(pattern, handler); 69 matcher.unregister(pattern); 73 matcher.setHandlers(map); 77 return (HttpRequestHandler) matcher.lookup(requestURI); 85 return matcher.matchUriRequestPattern(pattern, requestUri);
|
/external/guava/guava/src/com/google/common/base/ |
H A D | Platform.java | 37 static CharMatcher precomputeCharMatcher(CharMatcher matcher) { argument 38 return matcher.precomputedInternal();
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
H A D | Platform.java | 25 static CharMatcher precomputeCharMatcher(CharMatcher matcher) { argument 30 return matcher;
|
/external/hamcrest/src/org/hamcrest/core/ |
H A D | DescribedAs.java | 13 * Provides a custom description to another matcher.
17 private final Matcher<T> matcher;
field in class:DescribedAs 22 public DescribedAs(String descriptionTemplate, Matcher<T> matcher, Object[] values) {
argument 24 this.matcher = matcher;
29 return matcher.matches(o);
33 java.util.regex.Matcher arg = ARG_PATTERN.matcher(descriptionTemplate);
49 * Wraps an existing matcher and overrides the description when it fails.
52 public static <T> Matcher<T> describedAs(String description, Matcher<T> matcher, Object... values) {
argument 53 return new DescribedAs<T>(description, matcher, value [all...] |
H A D | Is.java | 19 private final Matcher<T> matcher; field in class:Is 21 public Is(Matcher<T> matcher) { argument 22 this.matcher = matcher; 26 return matcher.matches(arg); 30 description.appendText("is ").appendDescriptionOf(matcher); 41 public static <T> Matcher<T> is(Matcher<T> matcher) { argument 42 return new Is<T>(matcher);
|
H A D | IsNot.java | 13 * Calculates the logical negation of a matcher. 16 private final Matcher<T> matcher; field in class:IsNot 18 public IsNot(Matcher<T> matcher) { argument 19 this.matcher = matcher; 23 return !matcher.matches(arg); 27 description.appendText("not ").appendDescriptionOf(matcher); 34 public static <T> Matcher<T> not(Matcher<T> matcher) { argument 35 return new IsNot<T>(matcher);
|
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/impl/ |
H A D | UtilityExtensions.java | 36 * Given a matcher reference, which may be null, append its 40 UnicodeMatcher matcher, 43 if (matcher != null) { 44 appendToRule(rule, matcher.toPattern(escapeUnprintable), 39 appendToRule(StringBuffer rule, UnicodeMatcher matcher, boolean escapeUnprintable, StringBuffer quoteBuf) argument
|
/external/junit/src/org/junit/ |
H A D | Assume.java | 51 * Call to assume that <code>actual</code> satisfies the condition specified by <code>matcher</code>. 61 * @param <T> the static type accepted by the matcher (this can flag obvious compile-time problems such as {@code assumeThat(1, is("a"))} 63 * @param matcher an expression, built of {@link Matcher}s, specifying allowed values 68 public static <T> void assumeThat(T actual, Matcher<T> matcher) { argument 69 if (!matcher.matches(actual)) 70 throw new AssumptionViolatedException(actual, matcher);
|
/external/junit/src/org/junit/internal/ |
H A D | AssumptionViolatedException.java | 15 public AssumptionViolatedException(Object value, Matcher<?> matcher) { argument 18 fMatcher= matcher;
|
/external/junit/src/org/junit/internal/matchers/ |
H A D | CombinableMatcher.java | 13 public CombinableMatcher(Matcher<? extends T> matcher) { argument 14 fMatcher= matcher; 26 public CombinableMatcher<T> and(Matcher<? extends T> matcher) { argument 27 return new CombinableMatcher<T>(allOf(matcher, fMatcher)); 31 public CombinableMatcher<T> or(Matcher<? extends T> matcher) { argument 32 return new CombinableMatcher<T>(anyOf(matcher, fMatcher));
|
/external/junit/src/org/junit/matchers/ |
H A D | JUnitMatchers.java | 16 * @return A matcher matching any collection containing element 24 * @return A matcher matching any collection containing an element matching elementMatcher 32 * @return A matcher matching any collection containing every element in elements 40 * @return A matcher matching any collection containing at least one element that matches 41 * each matcher in elementMatcher (this may be one element matching all matchers, 42 * or different elements matching each matcher) 50 * @return A matcher matching any collection in which every element matches elementMatcher 58 * @return a matcher matching any string that contains substring 70 public static <T> CombinableMatcher<T> both(Matcher<T> matcher) { argument 71 return new CombinableMatcher<T>(matcher); 80 either(Matcher<T> matcher) argument [all...] |
/external/junit/src/org/junit/rules/ |
H A D | ErrorCollector.java | 51 * Adds a failure to the table if {@code matcher} does not match {@code value}. 54 public <T> void checkThat(final T value, final Matcher<T> matcher) { argument 55 checkThat("", value, matcher); 60 * to the table if {@code matcher} does not match {@code value}. 63 public <T> void checkThat(final String reason, final T value, final Matcher<T> matcher) { argument 66 assertThat(reason, value, matcher);
|
H A D | ExpectedException.java | 65 * Adds {@code matcher} to the list of requirements for any thrown exception. 69 public void expect(Matcher<?> matcher) { argument 71 fMatcher= (Matcher<Object>) matcher; 73 fMatcher= both(fMatcher).and(matcher); 93 * Adds {@code matcher} to the list of requirements for the message 96 public void expectMessage(Matcher<String> matcher) { argument 97 expect(hasMessage(matcher)); 123 private Matcher<Throwable> hasMessage(final Matcher<String> matcher) { argument 127 description.appendDescriptionOf(matcher); 132 return matcher [all...] |
/external/mockito/src/org/mockito/internal/progress/ |
H A D | ArgumentMatcherStorage.java | 15 HandyReturnValues reportMatcher(Matcher matcher);
argument
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
H A D | UriMatcherTest.java | 22 UriMatcher matcher; field in class:UriMatcherTest 28 matcher = new UriMatcher(NO_MATCH); 29 root = Robolectric.shadowOf(matcher).rootNode; 43 matcher.addURI(AUTH, path, 1); 57 matcher.addURI(AUTH, "#", 1); 58 matcher.addURI(AUTH, "*", 2); 66 matcher.addURI(AUTH, "bar", 1); 67 assertThat(matcher.match(Uri.withAppendedPath(URI, "bar")), is(1)); 69 matcher.addURI(AUTH, "bar/#", 2); 70 assertThat(matcher [all...] |