com.lexicalscope.fluentreflection
Class ReflectionMatcher<T>

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<T>
          extended by com.lexicalscope.fluentreflection.ReflectionMatcher<T>
Type Parameters:
T -
All Implemented Interfaces:
org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing

public abstract class ReflectionMatcher<T>
extends org.hamcrest.TypeSafeMatcher<T>

Base class for all the matchers included in the library.

Author:
tim

Constructor Summary
ReflectionMatcher()
           
 
Method Summary
 ReflectionMatcher<T> and(org.hamcrest.Matcher<? super T> matcher)
          Creates an "and" matcher combining this matcher and the given one
 ReflectionMatcher<T> or(org.hamcrest.Matcher<? super T> matcher)
          Creates an "or" matcher combining this matcher and the given one
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches, matchesSafely
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.hamcrest.SelfDescribing
describeTo
 

Constructor Detail

ReflectionMatcher

public ReflectionMatcher()
Method Detail

and

public ReflectionMatcher<T> and(org.hamcrest.Matcher<? super T> matcher)
Creates an "and" matcher combining this matcher and the given one

Parameters:
matcher - The matcher to be put in and with this one
Returns:
A matcher that return true if this matcher and the passed one return true

or

public ReflectionMatcher<T> or(org.hamcrest.Matcher<? super T> matcher)
Creates an "or" matcher combining this matcher and the given one

Parameters:
matcher - The matcher to be put in or with this one
Returns:
A matcher that return true if this matcher or the passed one return true


Copyright © 2011-2012 lexicalscope. All Rights Reserved.