Interface NodeVisitor<R>

  • Type Parameters:
    R - Return type of the visitor.
    All Known Implementing Classes:
    NodeVisitor.Default

    public interface NodeVisitor<R>
    Node visitor interface.
    • Method Detail

      • arrayNode

        R arrayNode​(ArrayNode node)
        Visits an array node.
        Parameters:
        node - Node to visit.
        Returns:
        Return value of the visitor.
      • booleanNode

        R booleanNode​(BooleanNode node)
        Visits a boolean node.
        Parameters:
        node - Node to visit.
        Returns:
        Return value of the visitor.
      • nullNode

        R nullNode​(NullNode node)
        Visits a null node.
        Parameters:
        node - Node to visit.
        Returns:
        Return value of the visitor.
      • numberNode

        R numberNode​(NumberNode node)
        Visits a number node.
        Parameters:
        node - Node to visit.
        Returns:
        Return value of the visitor.
      • objectNode

        R objectNode​(ObjectNode node)
        Visits an object node.
        Parameters:
        node - Node to visit.
        Returns:
        Return value of the visitor.
      • stringNode

        R stringNode​(StringNode node)
        Visits a string node.
        Parameters:
        node - Node to visit.
        Returns:
        Return value of the visitor.