public abstract class AssertionNode extends AbstractExprNode
annotations, assertionType, isSchemaAware| Constructor and Description |
|---|
AssertionNode(Assertion assertion)
Creates an AssertionNode using an arbitrary candidate assertion.
|
AssertionNode(Assertion assertion,
String desc)
Creates an AssertionNode using an arbitrary candidate assertion with a
descriptions used for filter AST walker dumps.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(FilterVisitor visitor)
Element/node accept method for visitor pattern.
|
ExprNode |
clone()
Makes a full clone in new memory space of the current node and children
|
boolean |
equals(Object obj) |
Assertion |
getAssertion()
Gets the Assertion used by this assertion node.
|
int |
hashCode() |
boolean |
isLeaf()
Always returns true since an AssertionNode has no children.
|
StringBuilder |
printRefinementToBuffer(StringBuilder buf)
Default implementation for this method : just throw an exception.
|
String |
toString() |
escapeFilterValue, get, getAnnotations, getAssertionType, isSchemaAware, setpublic AssertionNode(Assertion assertion)
assertion - the arbitrary selection logic.public ExprNode clone()
clone in interface ExprNodeclone in class AbstractExprNodepublic Assertion getAssertion()
public boolean isLeaf()
ExprNode.isLeaf()public StringBuilder printRefinementToBuffer(StringBuilder buf) throws UnsupportedOperationException
AbstractExprNodeprintRefinementToBuffer in interface ExprNodeprintRefinementToBuffer in class AbstractExprNodebuf - the buffer to append to.UnsupportedOperationException - if this node isn't a part of a refinement.ExprNode.printRefinementToBuffer(StringBuilder)public boolean equals(Object obj)
equals in class AbstractExprNodetrue if both objects are equalObject.equals(Object)public int hashCode()
hashCode in class AbstractExprNodeObject.hashCode()public Object accept(FilterVisitor visitor)
ExprNodevisitor - the filter expression tree structure visitor
TODO - what is this modified element ?ExprNode.accept(
FilterVisitor)public String toString()
toString in class AbstractExprNodeObject.toString()Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.