Class FreeTextVisitor
java.lang.Object
com.atlassian.jira.issue.search.util.FreeTextVisitor
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsFreeTextCondition
(Clause clause) Visit called when accepting aAndClause
.visit
(ChangedClause clause) Visit called when accepting aChangedClause
.Visit called when accepting aNotClause
.Visit called when accepting aOrClause
.visit
(TerminalClause clause) Visit called when accepting aTerminalClause
.Visit called when accepting aWasClause
.
-
Constructor Details
-
FreeTextVisitor
public FreeTextVisitor()
-
-
Method Details
-
containsFreeTextCondition
-
visit
Description copied from interface:ClauseVisitor
Visit called when accepting aAndClause
.- Specified by:
visit
in interfaceClauseVisitor<Boolean>
- Parameters:
andClause
- the node being visited.- Returns:
- The return type specified by the visitor.
-
visit
Description copied from interface:ClauseVisitor
Visit called when accepting aNotClause
.- Specified by:
visit
in interfaceClauseVisitor<Boolean>
- Parameters:
notClause
- the node being visited.- Returns:
- The return type specified by the visitor.
-
visit
Description copied from interface:ClauseVisitor
Visit called when accepting aOrClause
.- Specified by:
visit
in interfaceClauseVisitor<Boolean>
- Parameters:
orClause
- the node being visited.- Returns:
- The return type specified by the visitor.
-
visit
Description copied from interface:ClauseVisitor
Visit called when accepting aTerminalClause
.- Specified by:
visit
in interfaceClauseVisitor<Boolean>
- Parameters:
clause
- the node being visited.- Returns:
- The return type specified by the visitor.
-
visit
Description copied from interface:ClauseVisitor
Visit called when accepting aWasClause
.- Specified by:
visit
in interfaceClauseVisitor<Boolean>
- Parameters:
clause
- the node being visited.- Returns:
- The return type specified by the visitor.
-
visit
Description copied from interface:ClauseVisitor
Visit called when accepting aChangedClause
.- Specified by:
visit
in interfaceClauseVisitor<Boolean>
- Parameters:
clause
- the node being visited.- Returns:
- The return type specified by the visitor.
-