Package edu.uky.ai.io

Interface ObjectParser<E>

Type Parameters:
E - the kind of object this parser constructs
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 ObjectParser<E>
An object parser provides a means of translating a node into an object of a specific kind.
Author:
Stephen G. Ware
  • Method Summary

    Modifier and Type Method Description
    E parse​(Node node, Parser parser)
    Converts the given node into an object of type E.
  • Method Details

    • parse

      E parse​(Node node, Parser parser)
      Converts the given node into an object of type E.
      Parameters:
      node - the node to parse
      parser - the parser from which this parser was called (in case other nodes need to be parsed)
      Returns:
      an object of type E