public class DeterminedProjectsInQueryVisitor extends Object implements ClauseVisitor<Boolean>
For 'or' clause each of its subclauses visits must return true in order to determine project(s) from the whole clause. For 'and' at least one of its subclauses visits must return true in order to determine project(s).
All subclauses always need to be visited no matter what the results is so all projects are collected.
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.ImmutableList<Operator> |
ALLOWED_OPERATORS |
static String |
PROJECT_CLAUSE_NAME |
com.google.common.collect.ImmutableSet.Builder<String> |
projectsSetBuilder |
Constructor and Description |
---|
DeterminedProjectsInQueryVisitor() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getDeterminedProjects() |
Boolean |
visit(AndClause andClause)
Visit called when accepting a
AndClause . |
Boolean |
visit(ChangedClause changedClause)
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 terminalClause)
Visit called when accepting a
TerminalClause . |
Boolean |
visit(WasClause wasClause)
Visit called when accepting a
WasClause . |
public static final String PROJECT_CLAUSE_NAME
public static final com.google.common.collect.ImmutableList<Operator> ALLOWED_OPERATORS
public final com.google.common.collect.ImmutableSet.Builder<String> projectsSetBuilder
public Boolean visit(AndClause andClause)
ClauseVisitor
AndClause
.visit
in interface ClauseVisitor<Boolean>
andClause
- the node being visited.public Boolean visit(OrClause orClause)
ClauseVisitor
OrClause
.visit
in interface ClauseVisitor<Boolean>
orClause
- the node being visited.public Boolean visit(TerminalClause terminalClause)
ClauseVisitor
TerminalClause
.visit
in interface ClauseVisitor<Boolean>
terminalClause
- the node being visited.public Boolean visit(WasClause wasClause)
ClauseVisitor
WasClause
.visit
in interface ClauseVisitor<Boolean>
wasClause
- the node being visited.public Boolean visit(ChangedClause changedClause)
ClauseVisitor
ChangedClause
.visit
in interface ClauseVisitor<Boolean>
changedClause
- the node being visited.public Boolean visit(NotClause notClause)
ClauseVisitor
NotClause
.visit
in interface ClauseVisitor<Boolean>
notClause
- the node being visited.Copyright © 2002-2019 Atlassian. All Rights Reserved.