T - public abstract class NestedMatcher<T> extends QuickDiagnosingMatcherBase<T> implements PrecedencedSelfDescribing
PrecedencedSelfDescribing.getPrecedence() is
used to determine if parantheses should be inserted to resolve ambiguities.Matcher| Constructor and Description |
|---|
NestedMatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
nestedDescribe(org.hamcrest.Description d,
org.hamcrest.SelfDescribing s)
Appends description of
s to d,
enclosed in parantheses if necessary. |
protected void |
nestedDescribeMismatch(org.hamcrest.Description d,
org.hamcrest.Matcher<?> m,
Object item)
Appends mismatch description of
m to d,
enclosed in parantheses if necessary. |
protected boolean |
nestedQuickMatch(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 |
nestedQuickMatch(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. |
protected int |
precedenceOf(Object o)
If
o is a PrecedencedSelfDescribing,
calls PrecedencedSelfDescribing.getPrecedence(),
otherwise returns PrecedencedSelfDescribing.P_ATOMIC. |
describeMismatch, matches, matches, quickMatch, quickMatch_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPrecedenceprotected int precedenceOf(Object o)
o is a PrecedencedSelfDescribing,
calls PrecedencedSelfDescribing.getPrecedence(),
otherwise returns PrecedencedSelfDescribing.P_ATOMIC.o - protected void nestedDescribe(org.hamcrest.Description d,
org.hamcrest.SelfDescribing s)
s to d,
enclosed in parantheses if necessary.d - s - protected void nestedDescribeMismatch(org.hamcrest.Description d,
org.hamcrest.Matcher<?> m,
Object item)
m to d,
enclosed in parantheses if necessary.d - m - item - protected boolean nestedQuickMatch(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 nestedQuickMatch(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 © 2013. All Rights Reserved.