@Test public void testPrimitives() throws IOException { assertThat(parse("test", "bool", "false"), is(false)); assertThat(parse("test", "bool", "0"), is(false)); assertThat(parse("test", "bool", "3"), is(true)); assertThat(parse("test", "byte", "44"), is((byte) 44)); assertThat(parse("test", "byte", "providence.Value.SIXTH"), is((byte) 13)); assertThat(parse("test", "i8", "44"), is((byte) 44)); assertThat(parse("test", "i16", "44"), is((short) 44)); assertThat(parse("providence", "i16", "providence.Value.SIXTH"), is((short) 13)); assertThat(parse("test", "i32", "44"), is(44)); assertThat(parse("providence", "i32", "Value.SIXTH"), is(13)); assertThat(parse("test", "i64", "44"), is(44L)); assertThat(parse("providence", "i64", "providence.Value.SIXTH"), is(13L)); assertThat(parse("test", "double", "44.42"), is(44.42)); assertThat(parse("test", "string", "\"value\""), is("value")); assertThat(parse("test", "string", "\'value\'"), is("value")); assertThat(parse("test", "string", "null"), is(nullValue())); assertThat(parse("test", "binary", "'AAAA'"), is(Binary.fromBase64("AAAA"))); assertThat(parse("test", "binary", "\"AAAA\""), is(Binary.fromBase64("AAAA"))); assertThat(parse("test", "binary", "null"), is(nullValue())); }
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);  }