Visitorclass HasVariantValueNodeVisitor extends java.lang.Object implements Visitor
insert into
| Modifier and Type | Field | Description |
|---|---|---|
private boolean |
hasVariant |
|
private boolean |
ignoreParameters |
|
private int |
variantType |
| Constructor | Description |
|---|---|
HasVariantValueNodeVisitor() |
Construct a visitor
|
HasVariantValueNodeVisitor(int variantType,
boolean ignoreParameters) |
Construct a visitor.
|
| Modifier and Type | Method | Description |
|---|---|---|
(package private) boolean |
hasVariant() |
Indicate whether we found the node in
question
|
boolean |
skipChildren(Visitable node) |
Method that is called to indicate whether
we should skip all nodes below this node
for traversal.
|
boolean |
stopTraversal() |
Stop traversal if we found the target node
|
Visitable |
visit(Visitable node) |
If we have found the target node, we are done.
|
boolean |
visitChildrenFirst(Visitable node) |
Method that is called to see if
visit() should be called on
the children of node before it is called on node itself. |
private boolean hasVariant
private int variantType
private boolean ignoreParameters
HasVariantValueNodeVisitor()
HasVariantValueNodeVisitor(int variantType,
boolean ignoreParameters)
variantType - the type of variance we consider
variantignoreParameters - should I ignore parameter nodes?public Visitable visit(Visitable node) throws StandardException
visit in interface Visitornode - the node to processStandardException - on errorpublic boolean skipChildren(Visitable node)
VisitorDiffers from stopTraversal() in that it only affects subtrees, rather than the entire traversal.
skipChildren in interface Visitornode - the node to processpublic boolean visitChildrenFirst(Visitable node)
Visitorvisit() should be called on
the children of node before it is called on node itself.
If this method always returns true, the visitor will walk the
tree bottom-up. If it always returns false, the tree is visited
top-down.visitChildrenFirst in interface Visitornode - the top node of a sub-tree about to be visitedtrue if node's children should be visited
before node, false otherwisepublic boolean stopTraversal()
stopTraversal in interface Visitorboolean hasVariant()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.