public static < T extends TypeDefinition > ElementMatcher . Junction < T > declaresMethod ( ElementMatcher < ? super MethodDescription > matcher ) { return new DeclaringMethodMatcher < T > ( new CollectionItemMatcher < MethodDescription > ( matcher ) ) ; }
Matches a type by a another matcher that is applied on any of its declared methods .