public class

ClauseReplacingCloningVisitor

extends Object
implements ClauseVisitor<R>
java.lang.Object
   ↳ com.atlassian.jira.issue.search.ClauseReplacingCloningVisitor

Class Overview

A visitor that will clone the tree it is visiting, replacing any terminal nodes with the same name as a node in the provided substitutions list with the substitution node.

Summary

Public Constructors
ClauseReplacingCloningVisitor(List<TerminalClause> substitutions)
Public Methods
Clause visit(WasClause clause)
Visit called when accepting a WasClause.
Clause visit(AndClause andClause)
Visit called when accepting a AndClause.
Clause visit(NotClause notClause)
Visit called when accepting a NotClause.
Clause visit(OrClause orClause)
Visit called when accepting a OrClause.
Clause visit(TerminalClause clause)
Visit called when accepting a TerminalClause.
Clause visit(ChangedClause clause)
Visit called when accepting a ChangedClause.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.query.clause.ClauseVisitor

Public Constructors

public ClauseReplacingCloningVisitor (List<TerminalClause> substitutions)

Public Methods

public Clause visit (WasClause clause)

Visit called when accepting a WasClause.

Parameters
clause the node being visited.
Returns
  • The return type specified by the visitor.

public Clause visit (AndClause andClause)

Visit called when accepting a AndClause.

Parameters
andClause the node being visited.
Returns
  • The return type specified by the visitor.

public Clause visit (NotClause notClause)

Visit called when accepting a NotClause.

Parameters
notClause the node being visited.
Returns
  • The return type specified by the visitor.

public Clause visit (OrClause orClause)

Visit called when accepting a OrClause.

Parameters
orClause the node being visited.
Returns
  • The return type specified by the visitor.

public Clause visit (TerminalClause clause)

Visit called when accepting a TerminalClause.

Parameters
clause the node being visited.
Returns
  • The return type specified by the visitor.

public Clause visit (ChangedClause clause)

Visit called when accepting a ChangedClause.

Parameters
clause the node being visited.
Returns
  • The return type specified by the visitor.