Class AbstractExprNode
java.lang.Object
org.apache.directory.api.ldap.model.filter.AbstractExprNode
- Direct Known Subclasses:
AssertionNode, BranchNode, LeafNode, ObjectClassNode, ScopeNode, UndefinedNode
Abstract implementation of a expression node.
- Author:
- Apache Directory Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe map of annotationsprotected final AssertionTypeThe node type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractExprNode(AssertionType assertionType) Creates a node by setting abstract node type. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone the objectbooleanGets an annotation on the tree by key.Gets the annotations as a Map.Gets the assertion type of this node.inthashCode()Default implementation for this method : just throw an exception.voidSets a annotation key to a value.toString()Methods inherited from interface ExprNode
accept, isLeaf, isSchemaAware
-
Field Details
-
annotations
-
assertionType
The node type
-
-
Constructor Details
-
AbstractExprNode
Creates a node by setting abstract node type.- Parameters:
assertionType- The node's type
-
-
Method Details
-
getAssertionType
Description copied from interface:ExprNodeGets the assertion type of this node. Make it possible to use switch statements on the node type.- Specified by:
getAssertionTypein interfaceExprNode- Returns:
- the node's type
- See Also:
-
equals
-
hashCode
-
get
-
set
-
getAnnotations
-
printRefinementToBuffer
Default implementation for this method : just throw an exception.- Specified by:
printRefinementToBufferin interfaceExprNode- 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.
-
clone
-
toString
-