Class CopyVisitor


public class CopyVisitor extends DepthFirstTraversalRegexASTVisitor
An AST visitor that produces a deep copy of a given Term and its subtree, and registers all new nodes in the RegexAST provided at instantiation. This visitor should be preferred over recursively copying with RegexASTNode.copy(RegexAST) whenever possible, since it is non-recursive. Note that this visitor is not thread-safe!
See Also: