Class ToolBox.QueryVisitor

java.lang.Object
com.yahoo.prelude.query.ToolBox.QueryVisitor
Enclosing class:
ToolBox

public abstract static class ToolBox.QueryVisitor extends Object
  • Constructor Details

    • QueryVisitor

      public QueryVisitor()
  • Method Details

    • visit

      public abstract boolean visit(Item item)
      Called for each item in the query tree given to ToolBox.visit(QueryVisitor, Item). Return true to visit the sub-items of the given item, return false to ignore the sub-items.
      Parameters:
      item - each item in the query tree
      Returns:
      whether or not to visit the sub-items of the argument item (and then invoke the onExit() method)
    • onExit

      public abstract void onExit()
      Invoked when all sub-items have been visited, or immediately after visit() if there are no sub-items or visit() returned false.