org.apache.directory.shared.ldap.filter
Interface ExprNode

All Known Implementing Classes:
AbstractExprNode, AssertionNode, BranchNode, ExtensibleNode, LeafNode, PresenceNode, ScopeNode, SimpleNode, SubstringNode

public interface ExprNode

Root expression node interface which all expression nodes in the filter expression tree implement.

Version:
$Revision: 434411 $
Author:
Apache Directory Project

Method Summary
 void accept(FilterVisitor a_visitor)
          Element/node accept method for visitor pattern.
 java.lang.Object get(java.lang.Object a_key)
          Gets an annotation on the tree by key.
 boolean isLeaf()
          Tests to see if this node is a leaf or branch node.
 java.lang.StringBuffer printToBuffer(java.lang.StringBuffer a_buf)
          Recursively appends this String representation of this node and its descendents in prefix notation to a buffer.
 void set(java.lang.Object a_key, java.lang.Object a_value)
          Sets a annotation key to a value.
 

Method Detail

get

java.lang.Object get(java.lang.Object a_key)
Gets an annotation on the tree by key.

Parameters:
a_key - the annotation key.
Returns:
the annotation value.

set

void set(java.lang.Object a_key,
         java.lang.Object a_value)
Sets a annotation key to a value.

Parameters:
a_key - the annotation key.
a_value - the annotation value.

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

printToBuffer

java.lang.StringBuffer printToBuffer(java.lang.StringBuffer a_buf)
Recursively appends this String representation of this node and its descendents in prefix notation to a buffer.

Parameters:
a_buf - the buffer to append to.

accept

void accept(FilterVisitor a_visitor)
Element/node accept method for visitor pattern.

Parameters:
a_visitor - the filter expression tree structure visitor


Copyright © 2004-2009. All Rights Reserved.