it.unimi.di.mg4j.query.nodes
Class MultiIndexTermExpander.ExpanderVisitor

java.lang.Object
  extended by it.unimi.di.mg4j.query.nodes.AbstractQueryBuilderVisitor<Query>
      extended by it.unimi.di.mg4j.query.nodes.AbstractTermExpander.ExpanderVisitor
          extended by it.unimi.di.mg4j.query.nodes.MultiIndexTermExpander.ExpanderVisitor
All Implemented Interfaces:
QueryBuilderVisitor<Query>, FlyweightPrototype<QueryBuilderVisitor<Query>>
Enclosing class:
MultiIndexTermExpander

protected class MultiIndexTermExpander.ExpanderVisitor
extends AbstractTermExpander.ExpanderVisitor


Constructor Summary
protected MultiIndexTermExpander.ExpanderVisitor()
           
 
Method Summary
 MultiIndexTermExpander.ExpanderVisitor copy()
           
 Query visitPost(Consecutive node, Query[] subNode)
          Visits a Consecutive node after recursing into the corresponding subtree.
 Query visitPost(OrderedAnd node, Query[] subNode)
          Visits an OrderedAnd node after recursing into the corresponding subtree.
 boolean visitPre(Consecutive node)
          Visits a Consecutive node before recursing into the corresponding subtree.
 boolean visitPre(OrderedAnd node)
          Visits an OrderedAnd node before recursing into the corresponding subtree.
 
Methods inherited from class it.unimi.di.mg4j.query.nodes.AbstractTermExpander.ExpanderVisitor
newArray, prepare, visit, visit, visit, visit, visit, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost
 
Methods inherited from class it.unimi.di.mg4j.query.nodes.AbstractQueryBuilderVisitor
visitPre, visitPre, visitPre, visitPre, visitPre, visitPre, visitPre, visitPre, visitPre, visitPre
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiIndexTermExpander.ExpanderVisitor

protected MultiIndexTermExpander.ExpanderVisitor()
Method Detail

copy

public MultiIndexTermExpander.ExpanderVisitor copy()
Specified by:
copy in interface QueryBuilderVisitor<Query>
Specified by:
copy in interface FlyweightPrototype<QueryBuilderVisitor<Query>>
Overrides:
copy in class AbstractTermExpander.ExpanderVisitor

visitPre

public boolean visitPre(Consecutive node)
Description copied from interface: QueryBuilderVisitor
Visits a Consecutive node before recursing into the corresponding subtree.

Specified by:
visitPre in interface QueryBuilderVisitor<Query>
Overrides:
visitPre in class AbstractQueryBuilderVisitor<Query>
Parameters:
node - the node to be visited.
Returns:
true if the visit should continue.

visitPost

public Query visitPost(Consecutive node,
                       Query[] subNode)
                throws QueryBuilderVisitorException
Description copied from interface: QueryBuilderVisitor
Visits a Consecutive node after recursing into the corresponding subtree.

Specified by:
visitPost in interface QueryBuilderVisitor<Query>
Overrides:
visitPost in class AbstractTermExpander.ExpanderVisitor
Parameters:
node - the internal node to be visited.
subNode - the array of results returned by subnodes.
Returns:
an appropriate return value (usually, the object built using the elements in subNodeResult) if the visit should continue, or null.
Throws:
QueryBuilderVisitorException

visitPre

public boolean visitPre(OrderedAnd node)
Description copied from interface: QueryBuilderVisitor
Visits an OrderedAnd node before recursing into the corresponding subtree.

Specified by:
visitPre in interface QueryBuilderVisitor<Query>
Overrides:
visitPre in class AbstractQueryBuilderVisitor<Query>
Parameters:
node - the node to be visited.
Returns:
true if the visit should continue.

visitPost

public Query visitPost(OrderedAnd node,
                       Query[] subNode)
                throws QueryBuilderVisitorException
Description copied from interface: QueryBuilderVisitor
Visits an OrderedAnd node after recursing into the corresponding subtree.

Specified by:
visitPost in interface QueryBuilderVisitor<Query>
Overrides:
visitPost in class AbstractTermExpander.ExpanderVisitor
Parameters:
node - the internal node to be visited.
subNode - the array of results returned by subnodes.
Returns:
an appropriate return value (usually, the object built using the elements in subNodeResult) if the visit should continue, or null.
Throws:
QueryBuilderVisitorException