public abstract class ConditionalVisitor extends Object implements ReplacingVisitor
Traversal is done in pre-order.
Constructor and Description |
---|
ConditionalVisitor() |
public final Codeable visitReplace(Codeable current, Codeable parent)
ReplacingVisitor
visitReplace
in interface ReplacingVisitor
current
- The currently visited object.parent
- The parent instance of the visited object. This is the object
the Codeable.visit(net.sourceforge.jenesis4java.ReplacingVisitor)
is called on.public abstract boolean visit(Codeable current, Codeable parent)
null
Codeable.current
- The currently visited Codeable. This is never null
.parent
- The parent of the visited Codeable. This is never null
.true
, if the visitor is to visit the children of the
current node, false
, if not.Copyright © 2000–2018 jenesis4java. All rights reserved.