View Javadoc

1   /**
2    * 
3    */
4   package com.lexicalscope.fluentreflection;
5   
6   import org.hamcrest.Description;
7   
8   
9   final class MatcherHasNoSuperclasses extends ReflectionMatcher<FluentClass<?>> {
10      @Override
11      public boolean matchesSafely(final FluentClass<?> arg) {
12          return arg.superclasses().isEmpty();
13      }
14  
15      @Override
16      public void describeTo(final Description description) {
17          description.appendText("type that extends no superclasses");
18      }
19  }