Package org.drools.drl.ast.descr
Class RestrictionConnectiveDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.RestrictionDescr
org.drools.drl.ast.descr.RestrictionConnectiveDescr
- All Implemented Interfaces:
Externalizable,Serializable,Namespaceable
This is used to connect restrictions together for a single field
eg:
age < 40 & > 30
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConnectiveDescr.RestrictionConnectiveTypestatic final ConnectiveDescr.RestrictionConnectiveType -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrMerge(RestrictionDescr restriction) voidaddRestriction(RestrictionDescr restriction) voidtoString()voidMethods inherited from class org.drools.drl.ast.descr.BaseDescr
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText
-
Field Details
-
AND
-
OR
-
-
Constructor Details
-
RestrictionConnectiveDescr
public RestrictionConnectiveDescr() -
RestrictionConnectiveDescr
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classBaseDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classBaseDescr- Throws:
IOException
-
getConnective
-
addRestriction
-
addOrMerge
-
getRestrictions
-
toString
-