Interface ProgramParser

  • All Known Implementing Classes:
    MessageProgramParser, ThriftProgramParser
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ProgramParser
    Document parser interface.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ProgramType parse​(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

        ProgramType parse​(java.io.InputStream in,
                          java.io.File file,
                          java.util.Collection<java.io.File> includeDirs)
                   throws java.io.IOException,
                          ParseException
        Parse input stream to document declaration model.
        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.