| java.lang.Object org.drools.rule.ConditionalElement org.drools.rule.GroupElement
Inner Class :public static interface Type extends Serializable | |
Field Summary | |
final public static Type | AND | final public static Type | EXISTS | final public static Type | NOT | final public static Type | OR |
AND | final public static Type AND(Code) | | |
EXISTS | final public static Type EXISTS(Code) | | |
NOT | final public static Type NOT(Code) | | |
OR | final public static Type OR(Code) | | |
GroupElement | public GroupElement()(Code) | | |
GroupElement | public GroupElement(Type type)(Code) | | |
addChild | public void addChild(RuleConditionElement child)(Code) | | Adds a child to the current GroupElement.
Restrictions are:
NOT/EXISTS: can have only one child, either a single Pattern or another CE
Parameters: child - |
addChild | public void addChild(int index, RuleConditionElement rce)(Code) | | Adds the given child as the (index)th child of the this GroupElement
Parameters: index - Parameters: rce - |
clone | public Object clone()(Code) | | Clones all Conditional Elements but references the non ConditionalElement
children
Parameters: e1 - Parameters: e2 - |
equals | public boolean equals(Object object)(Code) | | Traverses two trees and checks that they are structurally equal at all
levels
Parameters: e1 - Parameters: e2 - |
getInnerDeclarations | public Map getInnerDeclarations()(Code) | | |
getOuterDeclarations | public Map getOuterDeclarations()(Code) | | |
getType | public Type getType()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isAnd | public boolean isAnd()(Code) | | |
isExists | public boolean isExists()(Code) | | |
isNot | public boolean isNot()(Code) | | |
isOr | public boolean isOr()(Code) | | |
pack | public void pack()(Code) | | Optimize the group element subtree by removing redundancies
like an AND inside another AND, OR inside OR, single branches
AND/OR, etc.
LogicTransformer does further, more complicated, transformations
|
setType | public void setType(Type type)(Code) | | |
|
|