public class ThriftProgramParser extends Object implements ProgramParser
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
VALID_IDENTIFIER |
static Pattern |
VALID_SDI_IDENTIFIER |
| Constructor and Description |
|---|
ThriftProgramParser() |
| Modifier and Type | Method and Description |
|---|---|
net.morimekta.providence.model.ProgramType |
parse(InputStream in,
String filePath)
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 static final Pattern VALID_IDENTIFIER
public static final Pattern VALID_SDI_IDENTIFIER
public net.morimekta.providence.model.ProgramType parse(InputStream in, String filePath) throws IOException, ParseException
ProgramParserparse in interface ProgramParserin - The stream to parse.filePath - 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 © 2015–2017 morimekta.net. All rights reserved.