private static Predicate<MethodInfo> stringToMethodInfoPredicate( final Collection<String> excludedMethods) { final Predicate<String> excluded = Prelude.or(Glob.toGlobPredicates(excludedMethods)); return a -> excluded.test(a.getName()); }
protected Collection<Predicate<String>> predicateFor(final String... glob) { return Glob.toGlobPredicates(Arrays.asList(glob)); }
IgnoreCoreClasses() { this.impl = Prelude.not(Prelude.or(Glob.toGlobPredicates(this.filtered))); }
private Predicate<ClassPathRoot> createCodePathFilter() { if ((this.codePaths != null) && !this.codePaths.isEmpty()) { return new PathNamePredicate(Prelude.or(Glob .toGlobPredicates(this.codePaths))); } else { return new DefaultCodePathPredicate(); } }
public Predicate<String> getTargetClassesFilter() { final Predicate<String> filter = Prelude.and(or(Glob.toGlobPredicates(this.targetClasses)), not(isBlackListed(Glob.toGlobPredicates(ReportOptions.this.excludedClasses)))); checkNotTryingToMutateSelf(filter); return filter; }
public Predicate<String> getFilter() { return Prelude.and(Prelude.or(Glob.toGlobPredicates(this.include)), Prelude.not(Prelude.or(Glob.toGlobPredicates(this.exclude))), Prelude.not(commonClasses())); }
public Predicate<String> getTargetTestsFilter() { if ((this.targetTests == null) || this.targetTests.isEmpty()) { // If target tests is not explicitly set we assume that the // target classes predicate covers both classes and tests return Prelude.and(or(Glob.toGlobPredicates(this.targetClasses)), not(isBlackListed(ReportOptions.this.excludedTestClasses))); } else { return Prelude.and(or(this.targetTests), not(isBlackListed(ReportOptions.this.excludedTestClasses))); } }
private static Predicate<MethodInfo> stringToMethodInfoPredicate( final Collection<String> excludedMethods) { final Predicate<String> excluded = Prelude.or(Glob.toGlobPredicates(excludedMethods)); return a -> excluded.test(a.getName()); }
public static Predicate<Method> globsToPredicate(Collection<String> globs) { Predicate<String> excludedNames = Prelude.or(Glob.toGlobPredicates(globs)); return (method) -> excludedNames.test(method.getName()); }
IgnoreCoreClasses() { this.impl = Prelude.not(Prelude.or(Glob.toGlobPredicates(this.filtered))); }
public Predicate<String> getFilter() { return Prelude.and(Prelude.or(Glob.toGlobPredicates(this.include)), Prelude.not(Prelude.or(Glob.toGlobPredicates(this.exclude))), Prelude.not(commonClasses())); }