Package org.drools.drl.ast.descr
Class ConstraintConnectiveDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.AnnotatedBaseDescr
org.drools.drl.ast.descr.ConstraintConnectiveDescr
- All Implemented Interfaces:
Externalizable,Serializable,Namespaceable
A descriptor to represent logical connectives in constraints, like
&&, || and ^.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddOrMerge(BaseDescr baseDescr) voidbooleannegate()static ConstraintConnectiveDescrnewAnd()static ConstraintConnectiveDescrstatic ConstraintConnectiveDescrnewIncOr()static ConstraintConnectiveDescrnewOr()static ConstraintConnectiveDescrnewXor()voidsetConnective(ConnectiveType connective) voidsetNegated(boolean negated) voidsetResource(Resource resource) toString()Methods inherited from class org.drools.drl.ast.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotation, indexByFQN, readExternal, writeExternalMethods inherited from class org.drools.drl.ast.descr.BaseDescr
accept, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setStartCharacter, setText
-
Constructor Details
-
ConstraintConnectiveDescr
public ConstraintConnectiveDescr() -
ConstraintConnectiveDescr
-
-
Method Details
-
newAnd
-
newOr
-
newXor
-
newIncAnd
-
newIncOr
-
addDescr
-
getDescrs
-
getConnective
-
setConnective
-
addOrMerge
-
setResource
- Overrides:
setResourcein classBaseDescr
-
toString
-
copyLocation
- Overrides:
copyLocationin classBaseDescr
-
isNegated
public boolean isNegated() -
setNegated
public void setNegated(boolean negated) -
negate
-