All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.protostream.DescriptorParser Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.protostream;

import org.infinispan.protostream.descriptors.FileDescriptor;

import java.util.Map;

/**
 * Main parser interface.
 *
 * @author gustavonalle
 * @since 2.0
 */
public interface DescriptorParser {

   /**
    * Parses a set of protofiles and resolves imports and types.
    *
    * @param fileDescriptorSource the set of descriptors to parse
    * @return map of FileDescriptor objects keyed by with their names
    */
   Map parseAndResolve(FileDescriptorSource fileDescriptorSource) throws DescriptorParserException;

   /**
    * Parses a set of protofiles but does not resolve dependencies.
    *
    * @param fileDescriptorSource the set of descriptors to parse
    * @return map of FileDescriptor objects keyed by with their names
    */
   Map parse(FileDescriptorSource fileDescriptorSource) throws DescriptorParserException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy