public abstract class AssertionNode extends AbstractExprNode
| Modifier and Type | Field and Description |
|---|---|
private Assertion |
assertion
The assertion or predicate to apply
|
private java.lang.String |
desc
Description of assertion for polish printouts
|
annotations, assertionType, isSchemaAware| Constructor and Description |
|---|
AssertionNode(Assertion assertion)
Creates an AssertionNode using an arbitrary candidate assertion.
|
AssertionNode(Assertion assertion,
java.lang.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 |
|---|---|
java.lang.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(java.lang.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.
|
java.lang.StringBuilder |
printRefinementToBuffer(java.lang.StringBuilder buf)
Default implementation for this method : just throw an exception.
|
java.lang.String |
toString() |
escapeFilterValue, get, getAnnotations, getAssertionType, isSchemaAware, setprivate final Assertion assertion
private final java.lang.String desc
public AssertionNode(Assertion assertion)
assertion - the arbitrary selection logic.public AssertionNode(Assertion assertion, java.lang.String desc)
assertion - the arbitrary selection logic.desc - the printout representation for filter prints.public ExprNode clone()
clone in interface ExprNodeclone in class AbstractExprNodepublic Assertion getAssertion()
public boolean isLeaf()
ExprNode.isLeaf()public java.lang.StringBuilder printRefinementToBuffer(java.lang.StringBuilder buf)
throws java.lang.UnsupportedOperationException
AbstractExprNodeprintRefinementToBuffer in interface ExprNodeprintRefinementToBuffer in class AbstractExprNodebuf - the buffer to append to.java.lang.UnsupportedOperationException - if this node isn't a part of a refinement.ExprNode.printRefinementToBuffer(StringBuilder)public boolean equals(java.lang.Object obj)
equals in class AbstractExprNodetrue if both objects are equalObject.equals(Object)public int hashCode()
hashCode in class AbstractExprNodeObject.hashCode()public java.lang.Object accept(FilterVisitor visitor)
ExprNodevisitor - the filter expression tree structure visitor
TODO - what is this modified element ?ExprNode.accept(
FilterVisitor)public java.lang.String toString()
toString in class AbstractExprNodeObject.toString()