Class HasCurrentUserFunctionVisitor
java.lang.Object
com.atlassian.jira.issue.search.searchers.util.RecursiveClauseVisitor
com.atlassian.jira.projects.issuenavigator.filter.HasCurrentUserFunctionVisitor
- All Implemented Interfaces:
ClauseVisitor<Void>,OperandVisitor<Void>
public class HasCurrentUserFunctionVisitor
extends RecursiveClauseVisitor
implements OperandVisitor<Void>
Checks if any operands contain the currentUser() JQL function.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvisit(TerminalClause clause) Visit called when accepting aTerminalClause.visit(EmptyOperand emptyOperand) The method called when visiting anEmptyOperand.visit(FunctionOperand functionOperand) The method called when visiting aFunctionOperand.visit(MultiValueOperand multiValueOperand) The method called when visiting anMultiValueOperand.visit(SingleValueOperand singleValueOperand) The method called when visiting anSingleValueOperand.Methods inherited from class com.atlassian.jira.issue.search.searchers.util.RecursiveClauseVisitor
visit, visit, visit, visit, visitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.query.clause.ClauseVisitor
visit
-
Constructor Details
-
HasCurrentUserFunctionVisitor
public HasCurrentUserFunctionVisitor()
-
-
Method Details
-
visit
Description copied from interface:OperandVisitorThe method called when visiting anEmptyOperand.- Specified by:
visitin interfaceOperandVisitor<Void>- Parameters:
emptyOperand- the operand being visited.- Returns:
- the value to return from the operand visit.
-
visit
Description copied from interface:OperandVisitorThe method called when visiting aFunctionOperand.- Specified by:
visitin interfaceOperandVisitor<Void>- Parameters:
functionOperand- the operand being visited.- Returns:
- the value to return from the operand visit.
-
visit
Description copied from interface:OperandVisitorThe method called when visiting anMultiValueOperand.- Specified by:
visitin interfaceOperandVisitor<Void>- Parameters:
multiValueOperand- the operand being visited.- Returns:
- the value to return from the operand visit.
-
visit
Description copied from interface:OperandVisitorThe method called when visiting anSingleValueOperand.- Specified by:
visitin interfaceOperandVisitor<Void>- Parameters:
singleValueOperand- the operand being visited.- Returns:
- the value to return from the operand visit.
-
visit
Description copied from interface:ClauseVisitorVisit called when accepting aTerminalClause.- Specified by:
visitin interfaceClauseVisitor<Void>- Overrides:
visitin classRecursiveClauseVisitor- Parameters:
clause- the node being visited.- Returns:
- The return type specified by the visitor.
-
hasCurrentUserFunction
public boolean hasCurrentUserFunction()
-