public class

FreeTextVisitor

extends Object
implements ClauseVisitor<R>
java.lang.Object
   ↳ com.atlassian.jira.issue.search.util.FreeTextVisitor

Class Overview

Look through the query and try and find "text" searching conditions. We use a simple hueristic that any TerminalClause with a "LIKE" and "NOT LIKE" means a text match.

Summary

Public Constructors
FreeTextVisitor()
Public Methods
static boolean containsFreeTextCondition(Clause clause)
Boolean visit(OrClause orClause)
Visit called when accepting a OrClause.
Boolean visit(NotClause notClause)
Visit called when accepting a NotClause.
Boolean visit(AndClause andClause)
Visit called when accepting a AndClause.
Boolean visit(TerminalClause clause)
Visit called when accepting a TerminalClause.
Boolean visit(ChangedClause clause)
Visit called when accepting a ChangedClause.
Boolean visit(WasClause clause)
Visit called when accepting a WasClause.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.query.clause.ClauseVisitor

Public Constructors

public FreeTextVisitor ()

Public Methods

public static boolean containsFreeTextCondition (Clause clause)

public Boolean visit (OrClause orClause)

Visit called when accepting a OrClause.

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

public Boolean visit (NotClause notClause)

Visit called when accepting a NotClause.

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

public Boolean visit (AndClause andClause)

Visit called when accepting a AndClause.

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

public Boolean visit (TerminalClause clause)

Visit called when accepting a TerminalClause.

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

public Boolean visit (ChangedClause clause)

Visit called when accepting a ChangedClause.

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

public Boolean visit (WasClause clause)

Visit called when accepting a WasClause.

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