Class QueryModelTreePrinter

java.lang.Object
org.eclipse.rdf4j.query.algebra.helpers.AbstractQueryModelVisitor<RuntimeException>
org.eclipse.rdf4j.query.algebra.helpers.QueryModelTreePrinter
All Implemented Interfaces:
QueryModelVisitor<RuntimeException>

public class QueryModelTreePrinter extends AbstractQueryModelVisitor<RuntimeException>
QueryModelVisitor implementation that "prints" a tree representation of a query model. The tree representations is printed to an internal character buffer and can be retrieved using getTreeString(). As an alternative, the static utility method printTree(QueryModelNode) can be used.
  • Constructor Details Link icon

    • QueryModelTreePrinter Link icon

      public QueryModelTreePrinter()
  • Method Details Link icon

    • printTree Link icon

      public static String printTree(QueryModelNode node)
    • getTreeString Link icon

      public String getTreeString()
    • meetNode Link icon

      protected void meetNode(QueryModelNode node)
      Description copied from class: AbstractQueryModelVisitor
      Method called by all of the other meet methods that are not overridden in subclasses. This method can be overridden in subclasses to define default behaviour when visiting nodes. The default behaviour of this method is to visit the node's children.
      Overrides:
      meetNode in class AbstractQueryModelVisitor<RuntimeException>
      Parameters:
      node - The node that is being visited.