本文整理匯總了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"));
}