| Constructor and Description |
|---|
ThriftParser() |
| Modifier and Type | Method and Description |
|---|---|
net.morimekta.providence.model.ThriftDocument |
parse(InputStream in,
String name)
Parse input stream to document declaration model.
|
net.morimekta.providence.model.EnumType |
parseEnum(Tokenizer tokenizer,
String comment) |
void |
parseIncludes(Tokenizer tokenizer,
List<String> includes) |
void |
parseNamespace(Tokenizer tokenizer,
Map<String,String> namespaces) |
public net.morimekta.providence.model.ThriftDocument parse(InputStream in, String name) throws IOException, ParseException
Parserparse in interface Parserin - The stream to parse.name - The file name that is being parsed.IOException - When the stream was unreadable.ParseException - When the document could not be parsed.public void parseNamespace(Tokenizer tokenizer, Map<String,String> namespaces) throws IOException, ParseException
IOExceptionParseExceptionpublic void parseIncludes(Tokenizer tokenizer, List<String> includes) throws IOException, ParseException
IOExceptionParseExceptionpublic net.morimekta.providence.model.EnumType parseEnum(Tokenizer tokenizer, String comment) throws IOException, ParseException
IOExceptionParseExceptionCopyright © 2016. All rights reserved.