T - public abstract class NestedMatcher<T> extends QuickDiagnosingMatcherBase<T> implements PrecedencedSelfDescribing
PrecedencedSelfDescribing.getDescriptionPrecedence() is
used to determine if parantheses should be inserted to resolve ambiguities.Matcher| Modifier and Type | Class and Description |
|---|---|
protected static class |
NestedMatcher.NestedMatch<T,M extends org.hamcrest.Matcher<?>> |
protected static class |
NestedMatcher.NestedMismatch<T,M extends org.hamcrest.Matcher<?>> |
protected static class |
NestedMatcher.NestedResult<T,M extends org.hamcrest.Matcher<?>> |
P_AND, P_ATOMIC, P_COMPLEX, P_NONE, P_OR, P_UNARY, P_UNARY_NO_PAREN| Constructor and Description |
|---|
NestedMatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
nestedDescribe(org.hamcrest.SelfDescribing nested,
org.hamcrest.Description description,
String message)
Appends description of
s to d,
enclosed in parantheses if necessary. |
protected void |
nestedDescribeTo(org.hamcrest.SelfDescribing s,
org.hamcrest.Description d)
Appends description of
s to d,
enclosed in parantheses if necessary. |
protected boolean |
nestedMatch(org.hamcrest.Matcher<?> matcher,
Object item,
org.hamcrest.Description mismatch)
Invokes
QuickDiagnosingMatcherBase.quickMatch(org.hamcrest.Matcher, java.lang.Object, org.hamcrest.Description)
for m,
enclosed in parantheses if necessary. |
protected boolean |
nestedMatch(org.hamcrest.Matcher<?> matcher,
Object item,
org.hamcrest.Description mismatch,
String message)
Invokes
QuickDiagnosingMatcherBase.quickMatch(org.hamcrest.Matcher, java.lang.Object, org.hamcrest.Description, java.lang.String)
for m,
enclosed in parantheses if necessary. |
describeMismatch, matches, matches, matchResult, quickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescriptionPrecedenceprotected void nestedDescribeTo(org.hamcrest.SelfDescribing s,
org.hamcrest.Description d)
s to d,
enclosed in parantheses if necessary.d - s - protected void nestedDescribe(org.hamcrest.SelfDescribing nested,
org.hamcrest.Description description,
String message)
s to d,
enclosed in parantheses if necessary.description - nested - message - protected boolean nestedMatch(org.hamcrest.Matcher<?> matcher,
Object item,
org.hamcrest.Description mismatch)
QuickDiagnosingMatcherBase.quickMatch(org.hamcrest.Matcher, java.lang.Object, org.hamcrest.Description)
for m,
enclosed in parantheses if necessary.matcher - item - mismatch - protected boolean nestedMatch(org.hamcrest.Matcher<?> matcher,
Object item,
org.hamcrest.Description mismatch,
String message)
QuickDiagnosingMatcherBase.quickMatch(org.hamcrest.Matcher, java.lang.Object, org.hamcrest.Description, java.lang.String)
for m,
enclosed in parantheses if necessary.matcher - item - mismatch - message - Copyright © 2015. All rights reserved.