Interface ExprNode
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
AbstractExprNode, AndNode, ApproximateNode, AssertionNode, BranchNode, EqualityNode, ExtensibleNode, GreaterEqNode, LeafNode, LessEqNode, NotNode, ObjectClassNode, OrNode, PresenceNode, ScopeNode, SimpleNode, SubstringNode, UndefinedNode
Root expression node interface which all expression nodes in the filter
expression tree implement.
- Author:
- Apache Directory Project
-
Method Summary
Modifier and TypeMethodDescriptionaccept(FilterVisitor visitor) Element/node accept method for visitor pattern.clone()Clone this expression node.Gets an annotation on the tree by key.Gets the assertion type of this node.booleanisLeaf()Tests to see if this node is a leaf or branch node.booleanTells if this Node is Schema aware.Recursively appends the refinement string representation of this node and its descendants in prefix notation to a buffer.voidSets a annotation key to a value.
-
Method Details
-
get
-
set
-
isLeaf
boolean isLeaf()Tests to see if this node is a leaf or branch node.- Returns:
- true if the node is a leaf,false otherwise
-
isSchemaAware
boolean isSchemaAware()Tells if this Node is Schema aware.- Returns:
- true if the Node is SchemaAware
-
getAssertionType
AssertionType getAssertionType()Gets the assertion type of this node. Make it possible to use switch statements on the node type.- Returns:
- the assertion type
-
printRefinementToBuffer
Recursively appends the refinement string representation of this node and its descendants in prefix notation to a buffer.- Parameters:
buf- the buffer to append to.- Returns:
- The buffer in which the refinement has been appended
- Throws:
UnsupportedOperationException- if this node isn't a part of a refinement.
-
accept
Element/node accept method for visitor pattern.- Parameters:
visitor- the filter expression tree structure visitor- Returns:
- the modified element
-
clone
-