com.atlassian.jira.issue.search.searchers.impl
Class NamedTerminalClauseCollectingVisitor
java.lang.Object
com.atlassian.jira.issue.search.searchers.util.RecursiveClauseVisitor
com.atlassian.jira.issue.search.searchers.impl.NamedTerminalClauseCollectingVisitor
- All Implemented Interfaces:
- ClauseVisitor<Void>
public class NamedTerminalClauseCollectingVisitor
- extends RecursiveClauseVisitor
- implements ClauseVisitor<Void>
A RecursiveClauseVisitor
which collects
TerminalClause
s that have the specified clause names.
Note: this visitor does not perform any structure checking. It simply collects all the clauses with the specified
names.
- Since:
- v4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedTerminalClauseCollectingVisitor
public NamedTerminalClauseCollectingVisitor(String clauseName)
NamedTerminalClauseCollectingVisitor
public NamedTerminalClauseCollectingVisitor(Collection<String> clauseNames)
getNamedClauses
public List<TerminalClause> getNamedClauses()
containsNamedClause
public boolean containsNamedClause()
visit
public Void visit(TerminalClause clause)
- Description copied from interface:
ClauseVisitor
- Visit called when accepting a
TerminalClause
.
- Specified by:
visit
in interface ClauseVisitor<Void>
- Overrides:
visit
in class RecursiveClauseVisitor
- Parameters:
clause
- the node being visited.
- Returns:
- The return type specified by the visitor.
Copyright © 2002-2012 Atlassian. All Rights Reserved.