Class ThriftProgramParser
- java.lang.Object
-
- net.morimekta.providence.reflect.parser.ThriftProgramParser
-
- All Implemented Interfaces:
ProgramParser
public class ThriftProgramParser extends java.lang.Object implements ProgramParser
- Since:
- 07.09.15
- Author:
- Stein Eldar Johnsen
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.regex.PatternVALID_NAMESPACEstatic java.util.regex.PatternVALID_SDI_NAMESPACE
-
Constructor Summary
Constructors Constructor Description ThriftProgramParser()ThriftProgramParser(boolean requireFieldId, boolean requireEnumValue)ThriftProgramParser(boolean requireFieldId, boolean requireEnumValue, boolean allowLanguageReservedNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProgramTypeparse(java.io.InputStream in, java.io.File file, java.util.Collection<java.io.File> includeDirs)Parse input stream to document declaration model.
-
-
-
Method Detail
-
parse
public ProgramType parse(java.io.InputStream in, java.io.File file, java.util.Collection<java.io.File> includeDirs) throws java.io.IOException
Description copied from interface:ProgramParserParse input stream to document declaration model.- Specified by:
parsein interfaceProgramParser- Parameters:
in- The stream to parse.file- The file that is being parsed.includeDirs- Included directories that can be referenced directly.- Returns:
- The declared document model.
- Throws:
java.io.IOException- When the stream was unreadable.ParseException- When the document could not be parsed.
-
-