/** * Enables blacklist mode. */ public FindFile includeAll() { rules.blacklist(); return this; }
/** * Sets white/black list mode for jars. */ public ClassScanner excludeAllJars(final boolean whitelist) { if (whitelist) { rulesJars.whitelist(); } else { rulesJars.blacklist(); } return this; }
/** * Sets white/black list mode for jars. */ public ClassScanner includeAllJars(final boolean blacklist) { if (blacklist) { rulesJars.blacklist(); } else { rulesJars.whitelist(); } return this; }
/** * Sets white/black list mode for entries. */ public ClassScanner includeAllEntries(final boolean blacklist) { if (blacklist) { rulesEntries.blacklist(); } else { rulesEntries.whitelist(); } return this; } /**
/** * Sets white/black list mode for entries. */ public ClassScanner excludeAllEntries(final boolean whitelist) { if (whitelist) { rulesEntries.whitelist(); } else { rulesEntries.blacklist(); } return this; }
/** * Sets blacklist or whitelist mode depending on rules. Smart mode * determines the following: * <ul> * <li>If there are only include rules, then the {@link #whitelist() whitelist} mode is set.</li> * <li>If there are only excluded rules, then the {@link #blacklist() blacklist} mode is set.</li> * <li>In any other case (both type of rules exist or no rules are set), then mode is not changed.</li> * </ul> * Should be called <b>after</b> all the rules are set, before matching starts. */ public void detectMode() { if (excludesCount == 0 && includesCount > 0) { whitelist(); } else if (excludesCount > 0 && includesCount == 0) { blacklist(); } }
/** * Enables blacklist mode. */ public FindFile includeAll() { rules.blacklist(); return this; }
/** * Sets white/black list mode for jars. */ public ClassScanner excludeAllJars(final boolean whitelist) { if (whitelist) { rulesJars.whitelist(); } else { rulesJars.blacklist(); } return this; }
/** * Sets white/black list mode for entries. */ public ClassScanner excludeAllEntries(final boolean whitelist) { if (whitelist) { rulesEntries.whitelist(); } else { rulesEntries.blacklist(); } return this; }
/** * Sets white/black list mode for entries. */ public ClassScanner includeAllEntries(final boolean blacklist) { if (blacklist) { rulesEntries.blacklist(); } else { rulesEntries.whitelist(); } return this; } /**
/** * Sets white/black list mode for jars. */ public ClassScanner includeAllJars(final boolean blacklist) { if (blacklist) { rulesJars.blacklist(); } else { rulesJars.whitelist(); } return this; }
/** * Sets blacklist or whitelist mode depending on rules. Smart mode * determines the following: * <ul> * <li>If there are only include rules, then the {@link #whitelist() whitelist} mode is set.</li> * <li>If there are only excluded rules, then the {@link #blacklist() blacklist} mode is set.</li> * <li>In any other case (both type of rules exist or no rules are set), then mode is not changed.</li> * </ul> * Should be called <b>after</b> all the rules are set, before matching starts. */ public void detectMode() { if (excludesCount == 0 && includesCount > 0) { whitelist(); } else if (excludesCount > 0 && includesCount == 0) { blacklist(); } }