public final class SquareProtoParser extends Object implements DescriptorParser
Constructor and Description |
---|
SquareProtoParser(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
Map<String,FileDescriptor> |
parse(FileDescriptorSource fileDescriptorSource)
Parses a set of protofiles but does not resolve dependencies.
|
Map<String,FileDescriptor> |
parseAndResolve(FileDescriptorSource fileDescriptorSource)
Parses a set of protofiles and resolves imports and types.
|
public SquareProtoParser(Configuration configuration)
public Map<String,FileDescriptor> parseAndResolve(FileDescriptorSource fileDescriptorSource) throws DescriptorParserException
DescriptorParser
parseAndResolve
in interface DescriptorParser
fileDescriptorSource
- the set of descriptors to parseDescriptorParserException
public Map<String,FileDescriptor> parse(FileDescriptorSource fileDescriptorSource) throws DescriptorParserException
DescriptorParser
parse
in interface DescriptorParser
fileDescriptorSource
- the set of descriptors to parseDescriptorParserException
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.