本文整理汇总了Java中org.reflections.util.FilterBuilder.parse方法的典型用法代码示例。如果您正苦于以下问题:Java FilterBuilder.parse方法的具体用法?Java FilterBuilder.parse怎么用?Java FilterBuilder.parse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.reflections.util.FilterBuilder
的用法示例。
在下文中一共展示了FilterBuilder.parse方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: test_parse_include
import org.reflections.util.FilterBuilder; //导入方法依赖的package包/类
@Test
public void test_parse_include() {
FilterBuilder filter = FilterBuilder.parse("+org.reflections.*");
assertTrue(filter.apply("org.reflections.Reflections"));
assertTrue(filter.apply("org.reflections.foo.Reflections"));
assertFalse(filter.apply("org.foobar.Reflections"));
assertTrue(filter.apply("org.reflectionsplus.Reflections"));
}
示例2: test_parse_include_notRegex
import org.reflections.util.FilterBuilder; //导入方法依赖的package包/类
@Test
public void test_parse_include_notRegex() {
FilterBuilder filter = FilterBuilder.parse("+org.reflections");
assertFalse(filter.apply("org.reflections.Reflections"));
assertFalse(filter.apply("org.reflections.foo.Reflections"));
assertFalse(filter.apply("org.foobar.Reflections"));
assertFalse(filter.apply("org.reflectionsplus.Reflections"));
}
示例3: test_parse_exclude
import org.reflections.util.FilterBuilder; //导入方法依赖的package包/类
@Test
public void test_parse_exclude() {
FilterBuilder filter = FilterBuilder.parse("-org.reflections.*");
assertFalse(filter.apply("org.reflections.Reflections"));
assertFalse(filter.apply("org.reflections.foo.Reflections"));
assertTrue(filter.apply("org.foobar.Reflections"));
assertFalse(filter.apply("org.reflectionsplus.Reflections"));
}
示例4: test_parse_exclude_notRegex
import org.reflections.util.FilterBuilder; //导入方法依赖的package包/类
@Test
public void test_parse_exclude_notRegex() {
FilterBuilder filter = FilterBuilder.parse("-org.reflections");
assertTrue(filter.apply("org.reflections.Reflections"));
assertTrue(filter.apply("org.reflections.foo.Reflections"));
assertTrue(filter.apply("org.foobar.Reflections"));
assertTrue(filter.apply("org.reflectionsplus.Reflections"));
}
示例5: test_parse_include_exclude
import org.reflections.util.FilterBuilder; //导入方法依赖的package包/类
@Test
public void test_parse_include_exclude() {
FilterBuilder filter = FilterBuilder.parse("+org.reflections.*, -org.reflections.foo.*");
assertTrue(filter.apply("org.reflections.Reflections"));
assertFalse(filter.apply("org.reflections.foo.Reflections"));
assertFalse(filter.apply("org.foobar.Reflections"));
}