I - M - public class MatchResultProxy<I,M extends org.hamcrest.Matcher<?>> extends AbstractMatchResult<I,M>
MatchResult.Match<T>, MatchResult.Mismatch<T>P_AND, P_ATOMIC, P_COMPLEX, P_NONE, P_OR, P_UNARY, P_UNARY_NO_PAREN| Constructor and Description |
|---|
MatchResultProxy(MatchResult<?> result) |
MatchResultProxy(MatchResult<?> result,
I value,
M matcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeExpected(org.hamcrest.Description description)
Describes what was expected (e.g., describes the matcher).
|
void |
describeMatch(org.hamcrest.Description description)
Describes the match (e.g., describes the matcher).
|
void |
describeMismatch(org.hamcrest.Description description)
Describes the mismatch (e.g., uses the matcher's mismatch description).
|
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
fastProxy() |
int |
getDescriptionPrecedence() |
PrecedencedSelfDescribing |
getExpectedDescription()
Returns an object that will describe itself as the expected message.
|
int |
getExpectedPrecedence()
Returns the precedence of the expected message
|
PrecedencedSelfDescribing |
getMatchDescription()
Returns an object that will describe itself as the match.
|
int |
getMatchPrecedence()
Returns the precedence of the match message
|
PrecedencedSelfDescribing |
getMismatchDescription()
Returns an object that will describe itself as the mismatch.
|
int |
getMismatchPrecedence()
Returns the precedence of the mismatch
|
protected MatchResult.Match<?> |
match()
For internal use.
|
boolean |
matched()
Returns whether the value was matched.
|
protected MatchResult.Mismatch<?> |
mismatch()
For internal use.
|
protected MatchResult<?> |
result() |
getMatch, getMismatchdescribeMatcher, getMatcher, getMatcherDescription, getMatcherPrecedence, getValuetoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdescribeMatcher, getMatcher, getMatcherDescription, getMatcherPrecedence, getValuepublic MatchResultProxy(MatchResult<?> result, I value, M matcher)
public MatchResultProxy(MatchResult<?> result)
protected boolean fastProxy()
protected MatchResult<?> result()
protected MatchResult.Match<?> match()
protected MatchResult.Mismatch<?> mismatch()
public boolean matched()
MatchResultmatched in interface MatchResult<I>matched in class AbstractMatchResult<I,M extends org.hamcrest.Matcher<?>>public void describeTo(org.hamcrest.Description description)
describeTo in interface org.hamcrest.SelfDescribingdescribeTo in class AbstractMatchResult<I,M extends org.hamcrest.Matcher<?>>public int getDescriptionPrecedence()
getDescriptionPrecedence in interface PrecedencedSelfDescribinggetDescriptionPrecedence in class AbstractMatchResult<I,M extends org.hamcrest.Matcher<?>>public void describeMatch(org.hamcrest.Description description)
MatchResult.MatchdescribeMatch in interface MatchResult.Match<I>describeMatch in class AbstractMatchResult<I,M extends org.hamcrest.Matcher<?>>public int getMatchPrecedence()
MatchResult.MatchgetMatchPrecedence in interface MatchResult.Match<I>getMatchPrecedence in class AbstractMatchResult<I,M extends org.hamcrest.Matcher<?>>PrecedencedSelfDescribingpublic PrecedencedSelfDescribing getMatchDescription()
MatchResult.MatchgetMatchDescription in interface MatchResult.Match<I>getMatchDescription in class AbstractMatchResult<I,M extends org.hamcrest.Matcher<?>>public void describeExpected(org.hamcrest.Description description)
MatchResult.MismatchdescribeExpected in interface MatchResult.Mismatch<I>describeExpected in class MatchResultMismatch<I,M extends org.hamcrest.Matcher<?>>public int getExpectedPrecedence()
MatchResult.MismatchgetExpectedPrecedence in interface MatchResult.Mismatch<I>getExpectedPrecedence in class MatchResultMismatch<I,M extends org.hamcrest.Matcher<?>>PrecedencedSelfDescribingpublic PrecedencedSelfDescribing getExpectedDescription()
MatchResult.MismatchgetExpectedDescription in interface MatchResult.Mismatch<I>getExpectedDescription in class MatchResultMismatch<I,M extends org.hamcrest.Matcher<?>>public void describeMismatch(org.hamcrest.Description description)
MatchResult.MismatchdescribeMismatch in interface MatchResult.Mismatch<I>describeMismatch in class MatchResultMismatch<I,M extends org.hamcrest.Matcher<?>>public int getMismatchPrecedence()
MatchResult.MismatchgetMismatchPrecedence in interface MatchResult.Mismatch<I>getMismatchPrecedence in class MatchResultMismatch<I,M extends org.hamcrest.Matcher<?>>PrecedencedSelfDescribingpublic PrecedencedSelfDescribing getMismatchDescription()
MatchResult.MismatchgetMismatchDescription in interface MatchResult.Mismatch<I>getMismatchDescription in class MatchResultMismatch<I,M extends org.hamcrest.Matcher<?>>Copyright © 2015. All rights reserved.