no.sesat.search.query.finder
Class ChildFinder

java.lang.Object
  extended by no.sesat.commons.visitor.AbstractReflectionVisitor
      extended by no.sesat.search.query.finder.ChildFinder
All Implemented Interfaces:
no.sesat.commons.visitor.Visitor

public final class ChildFinder
extends no.sesat.commons.visitor.AbstractReflectionVisitor

Used to find if a particular clause exists underneath another.

Version:
$Id$

Field Summary
 
Fields inherited from class no.sesat.commons.visitor.AbstractReflectionVisitor
VISIT_METHOD_IMPL
 
Constructor Summary
ChildFinder()
           
 
Method Summary
 boolean childExists(UnaryClause parent, Clause child)
          Does the child clause exist any depth underneath the parent.
protected  void visitImpl(BinaryClause clause)
           
protected  void visitImpl(LeafClause clause)
           
protected  void visitImpl(UnaryClause clause)
           
 
Methods inherited from class no.sesat.commons.visitor.AbstractReflectionVisitor
visit, visitImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildFinder

public ChildFinder()
Method Detail

childExists

public boolean childExists(UnaryClause parent,
                           Clause child)
Does the child clause exist any depth underneath the parent.

Parameters:
parent - the parent clause
child - the child clause.
Returns:
Does the child clause exist any depth underneath the parent.

visitImpl

protected void visitImpl(BinaryClause clause)

visitImpl

protected void visitImpl(UnaryClause clause)

visitImpl

protected void visitImpl(LeafClause clause)


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.