/** * {@link Filter} that exclude all {@link ArchivePath}s that match the given List of paths. * * @param paths * The paths to exclude * @return A Path list based exclude {@link Filter} */ public static Filter<ArchivePath> excludePaths(final String... paths) { return getFilterInstance(IMPL_CLASS_NAME_EXCLUDE_PATHS, new Class<?>[] { String[].class }, new Object[] { paths }); }
/** * {@link Filter} that includes all {@link ArchivePath}s. * * Only meant to be used internally. * * @return A {@link Filter} that always return true */ public static Filter<ArchivePath> includeAll() { return getFilterInstance(IMPL_CLASS_NAME_INCLUDE_ALL_PATHS, new Class<?>[] {}, new Object[] {}); }
/** * {@link Filer} that include all {@link ArchivePath}s that match the given List of paths.. * * @param paths * The paths to included * @return A Path list based include {@link Filter} */ public static Filter<ArchivePath> includePaths(final String... paths) { return getFilterInstance(IMPL_CLASS_NAME_INCLUDE_PATHS, new Class<?>[] { String[].class }, new Object[] { paths }); }
/** * {@link Filer} that include all {@link ArchivePath}s that match the given Regular Expression {@link Pattern}. * * @param regexp * The expression to include * @return A Regular Expression based include {@link Filter} */ public static Filter<ArchivePath> include(String regexp) { return getFilterInstance(IMPL_CLASS_NAME_INCLUDE_REGEXP_PATHS, new Class<?>[] { String.class }, new Object[] { regexp }); }
/** * {@link Filter} that exclude all {@link ArchivePath}s that match a given Regular Expression {@link Pattern}. * * @param regexp * The expression to exclude * @return A Regular Expression based exclude {@link Filter} */ public static Filter<ArchivePath> exclude(final String regexp) { return getFilterInstance(IMPL_CLASS_NAME_EXCLUDE_REGEXP_PATHS, new Class<?>[] { String.class }, new Object[] { regexp }); }
/** * {@link Filer} that include all {@link ArchivePath}s that match the given List of paths.. * * @param paths * The paths to included * @return A Path list based include {@link Filter} */ public static Filter<ArchivePath> includePaths(final Collection<String> paths) { return getFilterInstance(IMPL_CLASS_NAME_INCLUDE_PATHS, new Class<?>[] { Collection.class }, new Object[] { paths }); }
/** * {@link Filer} that include all {@link ArchivePath}s that match the given List of paths.. * * @param paths * The paths to included * @return A Path list based include {@link Filter} */ public static Filter<ArchivePath> includePaths(final String... paths) { return getFilterInstance(IMPL_CLASS_NAME_INCLUDE_PATHS, new Class<?>[] { String[].class }, new Object[] { paths }); }
/** * {@link Filter} that exclude all {@link ArchivePath}s that match the given List of paths. * * @param paths * The paths to exclude * @return A Path list based exclude {@link Filter} */ public static Filter<ArchivePath> excludePaths(final String... paths) { return getFilterInstance(IMPL_CLASS_NAME_EXCLUDE_PATHS, new Class<?>[] { String[].class }, new Object[] { paths }); }
/** * {@link Filer} that include all {@link ArchivePath}s that match the given List of paths.. * * @param paths * The paths to included * @return A Path list based include {@link Filter} */ public static Filter<ArchivePath> includePaths(final Collection<String> paths) { return getFilterInstance(IMPL_CLASS_NAME_INCLUDE_PATHS, new Class<?>[] { Collection.class }, new Object[] { paths }); }
/** * {@link Filter} that exclude all {@link ArchivePath}s that match the given List of paths. * * @param paths * The paths to exclude * @return A Path list based exclude {@link Filter} */ public static Filter<ArchivePath> excludePaths(final Collection<String> paths) { return getFilterInstance(IMPL_CLASS_NAME_EXCLUDE_PATHS, new Class<?>[] { Collection.class }, new Object[] { paths }); }
/** * {@link Filter} that exclude all {@link ArchivePath}s that match the given List of paths. * * @param paths * The paths to exclude * @return A Path list based exclude {@link Filter} */ public static Filter<ArchivePath> excludePaths(final Collection<String> paths) { return getFilterInstance(IMPL_CLASS_NAME_EXCLUDE_PATHS, new Class<?>[] { Collection.class }, new Object[] { paths }); }
/** * {@link Filter} that includes all {@link ArchivePath}s. * * Only meant to be used internally. * * @return A {@link Filter} that always return true */ public static Filter<ArchivePath> includeAll() { return getFilterInstance(IMPL_CLASS_NAME_INCLUDE_ALL_PATHS, new Class<?>[] {}, new Object[] {}); }
/** * {@link Filer} that include all {@link ArchivePath}s that match the given Regular Expression {@link Pattern}. * * @param regexp * The expression to include * @return A Regular Expression based include {@link Filter} */ public static Filter<ArchivePath> include(String regexp) { return getFilterInstance(IMPL_CLASS_NAME_INCLUDE_REGEXP_PATHS, new Class<?>[] { String.class }, new Object[] { regexp }); }
/** * {@link Filter} that exclude all {@link ArchivePath}s that match a given Regular Expression {@link Pattern}. * * @param regexp * The expression to exclude * @return A Regular Expression based exclude {@link Filter} */ public static Filter<ArchivePath> exclude(final String regexp) { return getFilterInstance(IMPL_CLASS_NAME_EXCLUDE_REGEXP_PATHS, new Class<?>[] { String.class }, new Object[] { regexp }); }
private static Filter<ArchivePath> createRegExpFilter(String filterClassName, Package... packages) { StringBuilder classExpression = new StringBuilder(); for (Package pack : packages) { classExpression.append("|"); classExpression.append("(.*" + pack.getName().replaceAll("\\.", "\\.") + ".*)"); } classExpression.deleteCharAt(0); return getFilterInstance(filterClassName, new Class<?>[] { String.class }, new Object[] { classExpression.toString() }); }
private static Filter<ArchivePath> createRegExpFilter(String regExpFilterImplName, Class<?>... classes) { StringBuilder classExpression = new StringBuilder(); for (Class<?> clazz : classes) { classExpression.append("|"); classExpression.append("(.*" + clazz.getName().replaceAll("\\.", "\\.") + "\\.class)"); } classExpression.deleteCharAt(0); return getFilterInstance(regExpFilterImplName, new Class<?>[] { String.class }, new Object[] { classExpression.toString() }); }
private static Filter<ArchivePath> createRegExpFilter(String filterClassName, Package... packages) { StringBuilder classExpression = new StringBuilder(); for (Package pack : packages) { classExpression.append("|"); classExpression.append("(.*" + pack.getName().replaceAll("\\.", "\\.") + ".*)"); } classExpression.deleteCharAt(0); return getFilterInstance(filterClassName, new Class<?>[] { String.class }, new Object[] { classExpression.toString() }); }
private static Filter<ArchivePath> createRegExpFilter(String regExpFilterImplName, Class<?>... classes) { StringBuilder classExpression = new StringBuilder(); for (Class<?> clazz : classes) { classExpression.append("|"); classExpression.append("(.*" + clazz.getName().replaceAll("\\.", "\\.") + "\\.class)"); } classExpression.deleteCharAt(0); return getFilterInstance(regExpFilterImplName, new Class<?>[] { String.class }, new Object[] { classExpression.toString() }); }