public abstract class AssertionNode extends AbstractExprNode
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.
|
StringBuilder |
printRefinementToBuffer(StringBuilder buf)
Default implementation for this method : just throw an exception.
|
String |
toString() |
clone, get, getAssertionType, isSchemaAware, set
public AssertionNode(Assertion assertion)
assertion
- the arbitrary selection logic.public AssertionNode(Assertion assertion, String desc)
assertion
- the arbitrary selection logic.desc
- the printout representation for filter prints.public Assertion getAssertion()
public boolean isLeaf()
ExprNode.isLeaf()
public StringBuilder printRefinementToBuffer(StringBuilder buf)
AbstractExprNode
printRefinementToBuffer
in interface ExprNode
printRefinementToBuffer
in class AbstractExprNode
buf
- the buffer to append to.ExprNode.printRefinementToBuffer(StringBuilder)
public boolean equals(Object obj)
equals
in class AbstractExprNode
true
if both objects are equalObject.equals(Object)
public int hashCode()
hashCode
in class AbstractExprNode
Object.hashCode()
public Object accept(FilterVisitor visitor)
ExprNode
visitor
- the filter expression tree structure visitorExprNode.accept(
FilterVisitor)
public String toString()
toString
in class AbstractExprNode
Object.toString()
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.