View Javadoc

1   package com.lexicalscope.fluentreflection;
2   
3   import org.hamcrest.Description;
4   
5   final class MatcherIsStatic extends ReflectionMatcher<FluentMember> {
6       @Override
7       protected boolean matchesSafely(final FluentMember item) {
8           return item.isStatic();
9       }
10  
11      @Override
12      public void describeTo(final Description description) {
13          description.appendText("static element");
14      }
15  }