Package org.drools.drl.ast.descr
Class ConnectiveDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.RestrictionDescr
org.drools.drl.ast.descr.ConnectiveDescr
- All Implemented Interfaces:
Externalizable,Serializable,Namespaceable
This is used to connect restrictions together for a single field
eg:
age < 40 & > 30
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe connective types that can be used for a restriction -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConnectiveDescr.RestrictionConnectiveTypestatic final ConnectiveDescr.RestrictionConnectiveType -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidadd(ConnectiveDescr restriction) voidbooleanisParen()voidvoidsetParen(boolean paren) 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
-
ConnectiveDescr
public ConnectiveDescr() -
ConnectiveDescr
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classBaseDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classBaseDescr- Throws:
IOException
-
getConnective
-
isParen
public boolean isParen() -
setParen
public void setParen(boolean paren) -
getPrefix
-
setPrefix
-
add
-
add
-
getRestrictions
-
buildExpression
-
toString
-