com.atlassian.jira.issue.search.util
Class FreeTextVisitor

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

public class FreeTextVisitor
extends Object
implements ClauseVisitor<Boolean>

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.

Since:
v4.0

Constructor Summary
FreeTextVisitor()
           
 
Method Summary
static boolean containsFreeTextCondition(Clause clause)
           
 Boolean visit(AndClause andClause)
          Visit called when accepting a AndClause.
 Boolean visit(ChangedClause clause)
          Visit called when accepting a ChangedClause.
 Boolean visit(NotClause notClause)
          Visit called when accepting a NotClause.
 Boolean visit(OrClause orClause)
          Visit called when accepting a OrClause.
 Boolean visit(TerminalClause clause)
          Visit called when accepting a TerminalClause.
 Boolean visit(WasClause clause)
          Visit called when accepting a WasClause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeTextVisitor

public FreeTextVisitor()
Method Detail

containsFreeTextCondition

public static boolean containsFreeTextCondition(Clause clause)

visit

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

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

visit

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

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

visit

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

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

visit

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

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

visit

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

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

visit

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

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.