Class AbstractSearchFilterVisitor

  • All Implemented Interfaces:
    ExpressionVisitor, FilterVisitor

    public abstract class AbstractSearchFilterVisitor
    extends Object
    implements FilterVisitor, ExpressionVisitor
    SearchFilterVisitor is a base class used to optimize finding specific information in the filter data structure.

    This differs slightly form the DefaultFilterVisitor case in that you can abandon the depth first traversal at any point by returning true from found( object ).

    Most implementations accept the default functionality which simply checks if data is non null. This allows you to simply return an object from any method the moment you have found what you are looking for.

    Jody Garnett