@Test public void testMixed() throws IOException { App app = new App(); new ArgScanner().parse(Args.from(ArgFilters.selectClass(App.class), app), ImmutableList.of("-name=bob", "-db=fred", "1", "137")); assertEquals(new File("fred"), App.DB.get()); assertEquals("bob", app.name.get()); }
public static ArgsInfo from(Object... sources) throws IOException { return from(ImmutableList.copyOf(sources)); }
Args { public static ArgsInfo from(Object... sources) throws IOException { return from(ImmutableList.copyOf(sources)); } }
Args { public static ArgsInfo from(Object... sources) throws IOException { return from(ImmutableList.copyOf(sources)); } private  Args(); }
Args { public static ArgsInfo from(Object... sources) throws IOException { return from(ImmutableList.copyOf(sources)); } private  Args(); static ArgsInfo from(Object... sources); static ArgsInfo from(Predicate<Field> filter, Object... sources); static ArgsInfo from(Iterable<?> sources); static ArgsInfo from(Predicate<Field> filter, Iterable<?> sources); }
Args { public static ArgsInfo from(Object... sources) throws IOException { return from(ImmutableList.copyOf(sources)); } private  Args(); static ArgsInfo from(Object... sources); static ArgsInfo from(Predicate<Field> filter, Object... sources); static ArgsInfo from(Iterable<?> sources); static ArgsInfo from(Predicate<Field> filter, Iterable<?> sources);  }