public class ClauseRemovingCloningVisitor extends Object implements ClauseVisitor<Clause>
NOTE: it is possible to remove all clauses from a tree which will result in a null clause.
Constructor and Description |
---|
ClauseRemovingCloningVisitor(List<String> clauseNamesToRemove) |
Modifier and Type | Method and Description |
---|---|
Clause |
visit(AndClause andClause)
Visit called when accepting a
AndClause . |
Clause |
visit(ChangedClause clause)
Visit called when accepting a
ChangedClause . |
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(WasClause clause)
Visit called when accepting a
WasClause . |
public Clause visit(AndClause andClause)
ClauseVisitor
AndClause
.visit
in interface ClauseVisitor<Clause>
andClause
- the node being visited.public Clause visit(NotClause notClause)
ClauseVisitor
NotClause
.visit
in interface ClauseVisitor<Clause>
notClause
- the node being visited.public Clause visit(OrClause orClause)
ClauseVisitor
OrClause
.visit
in interface ClauseVisitor<Clause>
orClause
- the node being visited.public Clause visit(TerminalClause clause)
ClauseVisitor
TerminalClause
.visit
in interface ClauseVisitor<Clause>
clause
- the node being visited.public Clause visit(WasClause clause)
ClauseVisitor
WasClause
.visit
in interface ClauseVisitor<Clause>
clause
- the node being visited.public Clause visit(ChangedClause clause)
ClauseVisitor
ChangedClause
.visit
in interface ClauseVisitor<Clause>
clause
- the node being visited.Copyright © 2002-2018 Atlassian. All Rights Reserved.