| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.rule.ConditionalElement
org.drools.rule.GroupElement
public class GroupElement
| Nested Class Summary | |
|---|---|
| static interface | GroupElement.TypeA public interface for CE types | 
| Field Summary | |
|---|---|
| static GroupElement.Type | AND | 
| static GroupElement.Type | EXISTS | 
| static GroupElement.Type | NOT | 
| static GroupElement.Type | OR | 
| Constructor Summary | |
|---|---|
| GroupElement() | |
| GroupElement(GroupElement.Type type) | |
| Method Summary | |
|---|---|
|  void | addChild(int index,
         RuleConditionElement rce)Adds the given child as the (index)th child of the this GroupElement | 
|  void | addChild(RuleConditionElement child)Adds a child to the current GroupElement. | 
|  Object | clone()Clones all Conditional Elements but references the non ConditionalElement children | 
|  boolean | equals(Object object)Traverses two trees and checks that they are structurally equal at all levels | 
|  List | getChildren() | 
|  Map | getInnerDeclarations()Returns a Map of declarations that are visible inside this conditional element | 
|  Map | getOuterDeclarations()Returns a Map of declarations that are visible outside this conditional element. | 
|  GroupElement.Type | getType() | 
|  int | hashCode() | 
|  boolean | isAnd() | 
|  boolean | isExists() | 
|  boolean | isNot() | 
|  boolean | isOr() | 
|  void | pack()Optimize the group element subtree by removing redundancies like an AND inside another AND, OR inside OR, single branches AND/OR, etc. | 
|  Declaration | resolveDeclaration(String identifier)Resolves the given identifier in the current scope and returns the Declaration object for the declaration. | 
|  void | setType(GroupElement.Type type) | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final GroupElement.Type AND
public static final GroupElement.Type OR
public static final GroupElement.Type EXISTS
public static final GroupElement.Type NOT
| Constructor Detail | 
|---|
public GroupElement()
public GroupElement(GroupElement.Type type)
| Method Detail | 
|---|
public void addChild(RuleConditionElement child)
child - 
public void addChild(int index,
                     RuleConditionElement rce)
index - rce - public List getChildren()
public Map getInnerDeclarations()
RuleConditionElement
public Map getOuterDeclarations()
RuleConditionElement
public Declaration resolveDeclaration(String identifier)
RuleConditionElement
public void pack()
public boolean equals(Object object)
e1 - e2 - 
public int hashCode()
public Object clone()
clone in interface RuleConditionElementclone in class ConditionalElemente1 - e2 - 
public GroupElement.Type getType()
public void setType(GroupElement.Type type)
public boolean isAnd()
public boolean isOr()
public boolean isNot()
public boolean isExists()
public String toString()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||