Package org.infinispan.protostream
Interface DescriptorParser
-
@Deprecated public interface DescriptorParser
Deprecated.since 4.4. Will be removed in 5.0 with no replacementMain parser interface.- Since:
- 2.0
- Author:
- gustavonalle, anistor@redhat.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Map<String,FileDescriptor>parse(FileDescriptorSource fileDescriptorSource)Deprecated.Parses a set of .proto files but does not resolve type dependencies and does not detect semantic errors like duplicate type definitions.
-
-
-
Method Detail
-
parse
Map<String,FileDescriptor> parse(FileDescriptorSource fileDescriptorSource) throws DescriptorParserException
Deprecated.Parses a set of .proto files but does not resolve type dependencies and does not detect semantic errors like duplicate type definitions. If theFileDescriptorSourceparameter does not include a progress callback parsing will stop on first encountered error. If a callback exists all files will be processed; only one error per file is reported and parsing will continue with the next file.- Parameters:
fileDescriptorSource- the set of descriptors to parse- Returns:
- a map of successfully parsed
FileDescriptorobjects keyed by with their names - Throws:
DescriptorParserException- if parsing errors were encountered and no progress callback was specified in theFileDescriptorSource
-
-