public abstract class AssertionNode extends AbstractExprNode
| Modifier and Type | Field and Description |
|---|---|
private Assertion |
assertion
The assertion or predicate to apply
|
private String |
desc
Description of assertion for polish printouts
|
annotations, assertionType| 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.
|
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.
|
boolean |
isSchemaAware()
Tells if this Node is Schema aware.
|
StringBuilder |
printRefinementToBuffer(StringBuilder buf)
Default implementation for this method : just throw an exception.
|
String |
toString() |
clone, get, getAnnotations, getAssertionType, setprivate final Assertion assertion
private final String desc
public AssertionNode(Assertion assertion)
assertion - the arbitrary selection logic.public Assertion getAssertion()
public boolean isLeaf()
ExprNode.isLeaf()public StringBuilder printRefinementToBuffer(StringBuilder buf)
AbstractExprNodeprintRefinementToBuffer in interface ExprNodeprintRefinementToBuffer in class AbstractExprNodebuf - the buffer to append to.ExprNode.printRefinementToBuffer(StringBuilder)public boolean isSchemaAware()
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 visitorExprNode.accept(
FilterVisitor)public String toString()
toString in class AbstractExprNodeObject.toString()Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.