public abstract class AssertionNode extends AbstractExprNode
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.
|
ExprNode |
clone()
Makes a full clone in new memory space of the current node and children
|
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() |
equals, escapeFilterValue, get, getAnnotations, getAssertionType, set
public AssertionNode(Assertion assertion)
assertion
- the arbitrary selection logic.public ExprNode clone()
clone
in interface ExprNode
clone
in class AbstractExprNode
public Assertion getAssertion()
public boolean isLeaf()
isLeaf
in interface ExprNode
isLeaf
in class AbstractExprNode
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 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(
org.apache.directory.shared.ldap.filter.FilterVisitor)
public String toString()
toString
in class AbstractExprNode
Object.toString()
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.