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

All Known Implementing Classes:
AbstractExprNode

public interface ExprNode

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

Version:
$Revision: 379008 $
Author:
Alex Karasulu, $Author: akarasulu $

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

public 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

public 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

public 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

public 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

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

Parameters:
a_visitor - the filter expression tree structure visitor


Copyright © 2003-2006 . All Rights Reserved.