@Test public void testMapListSet() throws IOException { assertThat(parse("providence", "map<Value,list<i32>>", "{\n" + " Value.FIRST: [1, 2, 3, 4]," + " 2: [4, 3, 2, 1]" + "}"), is(ImmutableMap.of( Value.FIRST, ImmutableList.of(1, 2, 3, 4), Value.SECOND, ImmutableList.of(4, 3, 2, 1) ))); assertThat(parse("providence", "map<bool,set<i32>>", "{\n" + " true: [1, 2, 3, 4]," + " false: [5, 6, 7, 8]" + "}"), is(ImmutableMap.of( Boolean.TRUE, ImmutableSet.of(1, 2, 3, 4), Boolean.FALSE, ImmutableSet.of(5, 6, 7, 8) ))); assertThat(parse("providence", "map<i32,i32>", "{\n" + "}"), is(ImmutableMap.of())); assertThat(parse("providence", "list<i32>", "[\n" + "]"), is(ImmutableList.of())); assertThat(parse("providence", "set<i32>", "[\n" + "]"), is(ImmutableSet.of())); }
public Object parse(InputStream inputStream, PDescriptor type) throws ParseException { return parse(new Utf8StreamReader(inputStream), type); }
ConstParser { public Object parse(InputStream inputStream, PDescriptor type) throws ParseException { return parse(new Utf8StreamReader(inputStream), type); } }
ConstParser { public Object parse(InputStream inputStream, PDescriptor type) throws ParseException { return parse(new Utf8StreamReader(inputStream), type); } ConstParser(TypeRegistry registry,
                       String programContext,
                       int startLineNo,
                       int startLinePos); }
ConstParser { public Object parse(InputStream inputStream, PDescriptor type) throws ParseException { return parse(new Utf8StreamReader(inputStream), type); } ConstParser(TypeRegistry registry,
                       String programContext,
                       int startLineNo,
                       int startLinePos); Object parse(InputStream inputStream, PDescriptor type); Object parse(Reader reader, PDescriptor type); }
ConstParser { public Object parse(InputStream inputStream, PDescriptor type) throws ParseException { return parse(new Utf8StreamReader(inputStream), type); } ConstParser(TypeRegistry registry,
                       String programContext,
                       int startLineNo,
                       int startLinePos); Object parse(InputStream inputStream, PDescriptor type); Object parse(Reader reader, PDescriptor type);  }