com.atlassian.jira.issue.search.searchers.transformer
Class SimpleNavigatorCollectorVisitor

java.lang.Object
  extended by com.atlassian.jira.issue.search.searchers.transformer.SimpleNavigatorCollectorVisitor
All Implemented Interfaces:
ClauseVisitor<java.lang.Void>

public class SimpleNavigatorCollectorVisitor
extends java.lang.Object
implements ClauseVisitor<java.lang.Void>

A visitor records all the TerminalClauses that match a particular condition. The visitor records whteher or not all the matched clauses are part of a standard navigator query. A standard navigator query is either a single terminal clause or an and clause with terminal clauses as children. This visitor only checks that the matched nodes form part of a standard query.

Since:
4.0.

Field Summary
protected  boolean valid
           
protected  boolean validPath
           
 
Constructor Summary
SimpleNavigatorCollectorVisitor(ClauseNames clauseNames)
           
SimpleNavigatorCollectorVisitor(java.util.Set<java.lang.String> clauseNames)
           
SimpleNavigatorCollectorVisitor(java.lang.String clauseName)
           
 
Method Summary
 java.util.List<TerminalClause> getClauses()
           
 boolean isValid()
           
 java.lang.Void visit(AndClause andClause)
          Visit called when accepting a AndClause.
 java.lang.Void visit(NotClause notClause)
          Visit called when accepting a NotClause.
 java.lang.Void visit(OrClause orClause)
          Visit called when accepting a OrClause.
 java.lang.Void visit(TerminalClause terminalClause)
          Visit called when accepting a TerminalClause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valid

protected boolean valid

validPath

protected boolean validPath
Constructor Detail

SimpleNavigatorCollectorVisitor

public SimpleNavigatorCollectorVisitor(java.lang.String clauseName)

SimpleNavigatorCollectorVisitor

public SimpleNavigatorCollectorVisitor(java.util.Set<java.lang.String> clauseNames)

SimpleNavigatorCollectorVisitor

public SimpleNavigatorCollectorVisitor(ClauseNames clauseNames)
Method Detail

getClauses

public java.util.List<TerminalClause> getClauses()

isValid

public boolean isValid()

visit

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

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

visit

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

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

visit

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

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

visit

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

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


Copyright © 2002-2010 Atlassian. All Rights Reserved.