Interface NodeFactory

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

    @FunctionalInterface
    @Deprecated
    public interface NodeFactory
    Deprecated.
    A NodeFactory is responsible for creating a Node objects from strings.
    • Method Detail

      • createNode

        Node createNode​(java.lang.String filename,
                        java.lang.String document)
        Deprecated.
        Creates a Node from a document String.

        The filename is used in error messages and for populating source locations for the built node objects.

        Parameters:
        filename - The name of the document that is being parsed to create nodes.
        document - The document to parse into nodes.
        Returns:
        Returns a Node representing the document.
        Throws:
        ModelSyntaxException - when a RuntimeException occurs.