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.
Constructor and Description |
---|
NamedTerminalClauseCollectingVisitor(Collection<String> clauseNames) |
NamedTerminalClauseCollectingVisitor(String clauseName) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsNamedClause() |
List<TerminalClause> |
getNamedClauses() |
Void |
visit(TerminalClause clause)
Visit called when accepting a
TerminalClause . |
visit, visit, visit, visit, visit
public NamedTerminalClauseCollectingVisitor(String clauseName)
public NamedTerminalClauseCollectingVisitor(Collection<String> clauseNames)
public List<TerminalClause> getNamedClauses()
public boolean containsNamedClause()
public Void visit(TerminalClause clause)
ClauseVisitor
TerminalClause
.visit
in interface ClauseVisitor<Void>
visit
in class RecursiveClauseVisitor
clause
- the node being visited.Copyright © 2002-2022 Atlassian. All Rights Reserved.