com.atlassian.jira.issue.search.searchers.util
Class RelevantSearcherVisitor

java.lang.Object
  extended by com.atlassian.jira.issue.search.searchers.util.RelevantSearcherVisitor
All Implemented Interfaces:
ClauseVisitor<java.lang.Boolean>

public class RelevantSearcherVisitor
extends java.lang.Object
implements ClauseVisitor<java.lang.Boolean>

Visitor that looks at a clause and determines the searchers that are relevant. For each TerminalClause it is determined what IssueSearcher is responsible for its searching. The searching user is passed into the constructor for visibility checking.

Since:
v4.0

Constructor Summary
RelevantSearcherVisitor(SearchHandlerManager searchHandlerManager, com.opensymphony.user.User user, SearchContext searchContext)
           
 
Method Summary
 java.util.Set<IssueSearcher> getRelevantSearchers()
           
 java.lang.Boolean visit(AndClause andClause)
          Visit called when accepting a AndClause.
 java.lang.Boolean visit(NotClause notClause)
          Visit called when accepting a NotClause.
 java.lang.Boolean visit(OrClause orClause)
          Visit called when accepting a OrClause.
 java.lang.Boolean visit(TerminalClause clause)
          Visit called when accepting a TerminalClause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelevantSearcherVisitor

public RelevantSearcherVisitor(SearchHandlerManager searchHandlerManager,
                               com.opensymphony.user.User user,
                               SearchContext searchContext)
Method Detail

getRelevantSearchers

public java.util.Set<IssueSearcher> getRelevantSearchers()

visit

public java.lang.Boolean visit(AndClause andClause)
Description copied from interface: ClauseVisitor
Visit called when accepting a AndClause.

Specified by:
visit in interface ClauseVisitor<java.lang.Boolean>
Parameters:
andClause - the node being visited.
Returns:
The return type specified by the visitor.

visit

public java.lang.Boolean visit(NotClause notClause)
Description copied from interface: ClauseVisitor
Visit called when accepting a NotClause.

Specified by:
visit in interface ClauseVisitor<java.lang.Boolean>
Parameters:
notClause - the node being visited.
Returns:
The return type specified by the visitor.

visit

public java.lang.Boolean visit(OrClause orClause)
Description copied from interface: ClauseVisitor
Visit called when accepting a OrClause.

Specified by:
visit in interface ClauseVisitor<java.lang.Boolean>
Parameters:
orClause - the node being visited.
Returns:
The return type specified by the visitor.

visit

public java.lang.Boolean visit(TerminalClause clause)
Description copied from interface: ClauseVisitor
Visit called when accepting a TerminalClause.

Specified by:
visit in interface ClauseVisitor<java.lang.Boolean>
Parameters:
clause - the node being visited.
Returns:
The return type specified by the visitor.


Copyright © 2002-2010 Atlassian. All Rights Reserved.