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, 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 ExprNode clone()
clone
in interface ExprNode
clone
in class AbstractExprNode
public Assertion getAssertion()
public boolean isLeaf()
ExprNode.isLeaf()
public StringBuilder printRefinementToBuffer(StringBuilder buf) throws UnsupportedOperationException
AbstractExprNode
printRefinementToBuffer
in interface ExprNode
printRefinementToBuffer
in class AbstractExprNode
buf
- 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 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 visitor
TODO - what is this modified element ?ExprNode.accept(
FilterVisitor)
public String toString()
toString
in class AbstractExprNode
Object.toString()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.