org.drools.rule
Class GroupElement

java.lang.Object
  extended byorg.drools.rule.ConditionalElement
      extended byorg.drools.rule.GroupElement
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
And, Exists, Not, Or

public abstract class GroupElement
extends ConditionalElement

See Also:
Serialized Form
 

Constructor Summary
GroupElement()
           
 
Method Summary
 void addChild(java.lang.Object child)
          This removes single branch 'and' and 'or' It also does basic nested removal, where an 'and' is nested inside an 'and' and when an 'or' is nested inside an 'or' LogicTransformer does further, more complicated, transformations
 java.lang.Object clone()
          Clones all Conditional Elements but references the non ConditionalElement children
 boolean equals(java.lang.Object object)
          Traverses two trees and checks that they are structurally equal at all levels
 java.util.List getChildren()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupElement

public GroupElement()
Method Detail

addChild

public void addChild(java.lang.Object child)
This removes single branch 'and' and 'or' It also does basic nested removal, where an 'and' is nested inside an 'and' and when an 'or' is nested inside an 'or' LogicTransformer does further, more complicated, transformations

Parameters:
child -

getChildren

public java.util.List getChildren()

equals

public boolean equals(java.lang.Object object)
Traverses two trees and checks that they are structurally equal at all levels

Returns:

hashCode

public int hashCode()

clone

public java.lang.Object clone()
Clones all Conditional Elements but references the non ConditionalElement children

Specified by:
clone in class ConditionalElement
Returns: