|
||||||||||
| 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 class |
GroupElement.Type
A public enum 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()
|
ObjectType |
getForallBaseObjectType()
|
Map |
getInnerDeclarations()
Returns a Map of declarations that are visible inside this conditional element |
List |
getNestedElements()
Returs a list of RuleConditionElement's that are nested inside the current element |
Map<String,Declaration> |
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()
|
boolean |
isPatternScopeDelimiter()
Returns true in case this RuleConditionElement delimits a pattern visibility scope. |
boolean |
isRoot()
|
void |
pack()
Optimize the group element subtree by removing redundancies like an AND inside another AND, OR inside OR, single branches AND/OR, etc. |
void |
pack(GroupElement parent)
|
void |
readExternal(ObjectInput in)
|
Declaration |
resolveDeclaration(String identifier)
Resolves the given identifier in the current scope and returns the Declaration object for the declaration. |
void |
setForallBaseObjectType(ObjectType objectType)
|
void |
setRoot(boolean root)
|
void |
setType(GroupElement.Type type)
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
| 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 NOT
public static final GroupElement.Type EXISTS
| Constructor Detail |
|---|
public GroupElement()
public GroupElement(GroupElement.Type type)
| Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void addChild(RuleConditionElement child)
child -
public void addChild(int index,
RuleConditionElement rce)
index - rce - public List getChildren()
public Map getInnerDeclarations()
RuleConditionElement
getInnerDeclarations in interface RuleConditionElementpublic Map<String,Declaration> getOuterDeclarations()
RuleConditionElement
getOuterDeclarations in interface RuleConditionElementpublic Declaration resolveDeclaration(String identifier)
RuleConditionElement
resolveDeclaration in interface RuleConditionElementpublic void setForallBaseObjectType(ObjectType objectType)
public ObjectType getForallBaseObjectType()
public void pack()
public void pack(GroupElement parent)
parent - public boolean equals(Object object)
equals in class Objecte1 - e2 -
public int hashCode()
hashCode in class Objectpublic 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()
toString in class Objectpublic List getNestedElements()
RuleConditionElement
getNestedElements in interface RuleConditionElementpublic boolean isPatternScopeDelimiter()
RuleConditionElement
isPatternScopeDelimiter in interface RuleConditionElementpublic boolean isRoot()
public void setRoot(boolean root)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||