public interface DescriptorParser
Modifier and Type | Method and Description |
---|---|
Map<String,FileDescriptor> |
parse(FileDescriptorSource fileDescriptorSource)
Parses a set of .proto files but does not resolve type dependencies and does not detect semantic errors like
duplicate type definitions.
|
Map<String,FileDescriptor> parse(FileDescriptorSource fileDescriptorSource) throws DescriptorParserException
FileDescriptorSource
parameter 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.fileDescriptorSource
- the set of descriptors to parseFileDescriptor
objects keyed by with their namesDescriptorParserException
- if parsing errors were encountered and no progress callback was specified in the
FileDescriptorSource
Copyright © 2019 JBoss, a division of Red Hat. All rights reserved.