@NotThreadSafe @NonInjectableComponent public class QueryContextVisitor extends Object implements ClauseVisitor<QueryContextVisitor.ContextResult>
QueryContextVisitor.ContextResult
, which contains the full and simple
QueryContext
s of the visited Query
.
To construct an instance of this class, please use the QueryContextVisitor.QueryContextVisitorFactory
.
QueryContextVisitor.QueryContextVisitorFactory
,
QueryContextVisitor.ContextResult
Modifier and Type | Class and Description |
---|---|
static class |
QueryContextVisitor.ContextResult
The result of visiting a
Query with the QueryContextVisitor . |
static class |
QueryContextVisitor.QueryContextVisitorFactory
Constructs an instance of
QueryContextVisitor for use. |
Constructor and Description |
---|
QueryContextVisitor(ApplicationUser searcher,
ContextSetUtil contextSetUtil,
SearchHandlerManager searchHandlerManager) |
Modifier and Type | Method and Description |
---|---|
QueryContextVisitor.ContextResult |
createContext(Clause clause) |
QueryContextVisitor.ContextResult |
visit(AndClause andClause)
Visit called when accepting a
AndClause . |
QueryContextVisitor.ContextResult |
visit(ChangedClause clause)
Visit called when accepting a
ChangedClause . |
QueryContextVisitor.ContextResult |
visit(NotClause notClause)
Visit called when accepting a
NotClause . |
QueryContextVisitor.ContextResult |
visit(OrClause orClause)
Visit called when accepting a
OrClause . |
QueryContextVisitor.ContextResult |
visit(TerminalClause clause)
Visit called when accepting a
TerminalClause . |
QueryContextVisitor.ContextResult |
visit(WasClause clause)
Visit called when accepting a
WasClause . |
public QueryContextVisitor(ApplicationUser searcher, ContextSetUtil contextSetUtil, SearchHandlerManager searchHandlerManager)
public QueryContextVisitor.ContextResult createContext(Clause clause)
public QueryContextVisitor.ContextResult visit(AndClause andClause)
ClauseVisitor
AndClause
.visit
in interface ClauseVisitor<QueryContextVisitor.ContextResult>
andClause
- the node being visited.public QueryContextVisitor.ContextResult visit(NotClause notClause)
ClauseVisitor
NotClause
.visit
in interface ClauseVisitor<QueryContextVisitor.ContextResult>
notClause
- the node being visited.public QueryContextVisitor.ContextResult visit(OrClause orClause)
ClauseVisitor
OrClause
.visit
in interface ClauseVisitor<QueryContextVisitor.ContextResult>
orClause
- the node being visited.public QueryContextVisitor.ContextResult visit(TerminalClause clause)
ClauseVisitor
TerminalClause
.visit
in interface ClauseVisitor<QueryContextVisitor.ContextResult>
clause
- the node being visited.public QueryContextVisitor.ContextResult visit(WasClause clause)
ClauseVisitor
WasClause
.visit
in interface ClauseVisitor<QueryContextVisitor.ContextResult>
clause
- the node being visited.public QueryContextVisitor.ContextResult visit(ChangedClause clause)
ClauseVisitor
ChangedClause
.visit
in interface ClauseVisitor<QueryContextVisitor.ContextResult>
clause
- the node being visited.Copyright © 2002-2022 Atlassian. All Rights Reserved.