@Test public void testNoMatch() throws Exception { assertThat(new HasSuperClassMatcher<TypeDescription>(typeMatcher).matches(typeDescription), is(false)); }
public boolean matches(T target) { if (target.isInterface()) { return matcher.matches(TypeDescription.Generic.OBJECT); } for (TypeDefinition typeDefinition : target) { if (matcher.matches(typeDefinition.asGenericType())) { return true; } } return false; }
HasSuperClassMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { if (target.isInterface()) { return matcher.matches(TypeDescription.Generic.OBJECT); } for (TypeDefinition typeDefinition : target) { if (matcher.matches(typeDefinition.asGenericType())) { return true; } } return false; } }
HasSuperClassMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { if (target.isInterface()) { return matcher.matches(TypeDescription.Generic.OBJECT); } for (TypeDefinition typeDefinition : target) { if (matcher.matches(typeDefinition.asGenericType())) { return true; } } return false; } HasSuperClassMatcher(ElementMatcher<? super TypeDescription.Generic> matcher); }
HasSuperClassMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { if (target.isInterface()) { return matcher.matches(TypeDescription.Generic.OBJECT); } for (TypeDefinition typeDefinition : target) { if (matcher.matches(typeDefinition.asGenericType())) { return true; } } return false; } HasSuperClassMatcher(ElementMatcher<? super TypeDescription.Generic> matcher); boolean matches(T target); @Override String toString(); }
HasSuperClassMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { if (target.isInterface()) { return matcher.matches(TypeDescription.Generic.OBJECT); } for (TypeDefinition typeDefinition : target) { if (matcher.matches(typeDefinition.asGenericType())) { return true; } } return false; } HasSuperClassMatcher(ElementMatcher<? super TypeDescription.Generic> matcher); boolean matches(T target); @Override String toString();  }