public class

SimpleNavigatorCollectorVisitor

extends Object
implements ClauseVisitor<R>
java.lang.Object
   ↳ com.atlassian.jira.issue.search.searchers.transformer.SimpleNavigatorCollectorVisitor

Class Overview

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.

Summary

Fields
protected boolean valid
protected boolean validPath
Public Constructors
SimpleNavigatorCollectorVisitor(String clauseName)
SimpleNavigatorCollectorVisitor(Set<String> clauseNames)
SimpleNavigatorCollectorVisitor(ClauseNames clauseNames)
Public Methods
List<TerminalClause> getClauses()
boolean isValid()
Void visit(OrClause orClause)
Visit called when accepting a OrClause.
Void visit(NotClause notClause)
Visit called when accepting a NotClause.
Void visit(AndClause andClause)
Visit called when accepting a AndClause.
Void visit(TerminalClause terminalClause)
Visit called when accepting a TerminalClause.
Void visit(ChangedClause clause)
Visit called when accepting a ChangedClause.
Void visit(WasClause clause)
Visit called when accepting a WasClause.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.query.clause.ClauseVisitor

Fields

protected boolean valid

protected boolean validPath

Public Constructors

public SimpleNavigatorCollectorVisitor (String clauseName)

public SimpleNavigatorCollectorVisitor (Set<String> clauseNames)

public SimpleNavigatorCollectorVisitor (ClauseNames clauseNames)

Public Methods

public List<TerminalClause> getClauses ()

public boolean isValid ()

public Void visit (OrClause orClause)

Visit called when accepting a OrClause.

Parameters
orClause the node being visited.
Returns
  • The return type specified by the visitor.

public Void visit (NotClause notClause)

Visit called when accepting a NotClause.

Parameters
notClause the node being visited.
Returns
  • The return type specified by the visitor.

public Void visit (AndClause andClause)

Visit called when accepting a AndClause.

Parameters
andClause the node being visited.
Returns
  • The return type specified by the visitor.

public Void visit (TerminalClause terminalClause)

Visit called when accepting a TerminalClause.

Parameters
terminalClause the node being visited.
Returns
  • The return type specified by the visitor.

public Void visit (ChangedClause clause)

Visit called when accepting a ChangedClause.

Parameters
clause the node being visited.
Returns
  • The return type specified by the visitor.

public Void visit (WasClause clause)

Visit called when accepting a WasClause.

Parameters
clause the node being visited.
Returns
  • The return type specified by the visitor.