|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.filter.AbstractExprNode
org.apache.directory.shared.ldap.filter.BranchNode
public class BranchNode
Node representing branches within the expression tree corresponding to logical operators within the filter expression.
| Field Summary | |
|---|---|
protected java.util.List<ExprNode> |
children
child node list for this branch node |
| Fields inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
|---|
annotations, assertionType |
| Constructor Summary | |
|---|---|
protected |
BranchNode(AssertionType assertionType)
Creates a BranchNode using a logical operator. |
protected |
BranchNode(AssertionType assertionType,
ExprNode... childList)
Creates a BranchNode using a logical operator and a list of children. |
protected |
BranchNode(AssertionType assertionType,
java.util.List<ExprNode> childList)
Creates a BranchNode using a logical operator and a list of children. |
| Method Summary | |
|---|---|
java.lang.Object |
accept(FilterVisitor visitor)
Element/node accept method for visitor pattern. |
void |
addNode(ExprNode node)
Adds a child node to this branch node node |
void |
addNodeToHead(ExprNode node)
Adds a child node to this branch node at the head rather than the tail. |
ExprNode |
clone()
Makes a full clone in new memory space of the current node and children |
boolean |
equals(java.lang.Object other)
|
java.util.List<ExprNode> |
getChildren()
Gets the children below this BranchNode. |
ExprNode |
getFirstChild()
Convenience method that gets the first child in the children array. |
int |
hashCode()
(non-Javadoc) |
boolean |
isLeaf()
Tests to see if this node is a leaf or branch node. |
void |
setChildren(java.util.List<ExprNode> list)
Sets the list of children under this node. |
| Methods inherited from class org.apache.directory.shared.ldap.filter.AbstractExprNode |
|---|
escapeFilterValue, get, getAnnotations, getAssertionType, printRefinementToBuffer, set, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<ExprNode> children
| Constructor Detail |
|---|
protected BranchNode(AssertionType assertionType,
java.util.List<ExprNode> childList)
assertionType - the node's typechildList - the child nodes under this branch node.
protected BranchNode(AssertionType assertionType,
ExprNode... childList)
assertionType - the node's typechildList - the child nodes under this branch node.protected BranchNode(AssertionType assertionType)
assertionType - the node's type| Method Detail |
|---|
public final boolean isLeaf()
AbstractExprNode
isLeaf in interface ExprNodeisLeaf in class AbstractExprNodeExprNode.isLeaf()public ExprNode clone()
clone in interface ExprNodeclone in class AbstractExprNodepublic void addNode(ExprNode node)
node - the child expression to add to this branch nodepublic void addNodeToHead(ExprNode node)
node - the child expression to add to this branch nodepublic java.util.List<ExprNode> getChildren()
public void setChildren(java.util.List<ExprNode> list)
list - the list of children to set.public ExprNode getFirstChild()
( ExprNode ) m_children.get( 0 )
public final java.lang.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 int hashCode()
hashCode in class AbstractExprNodeObject.hashCode()public boolean equals(java.lang.Object other)
equals in class AbstractExprNodetrue if both objects are equalObject.equals(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||