Package org.drools.compiler.lang.descr
Class ConstraintConnectiveDescr
- java.lang.Object
-
- org.drools.compiler.lang.descr.BaseDescr
-
- org.drools.compiler.lang.descr.AnnotatedBaseDescr
-
- org.drools.compiler.lang.descr.ConstraintConnectiveDescr
-
- All Implemented Interfaces:
Externalizable,Serializable,org.drools.core.rule.Annotated,org.drools.core.rule.Namespaceable
public class ConstraintConnectiveDescr extends AnnotatedBaseDescr
A descriptor to represent logical connectives in constraints, like &&, || and ^.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConstraintConnectiveDescr()ConstraintConnectiveDescr(ConnectiveType connective)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDescr(BaseDescr baseDescr)voidaddOrMerge(BaseDescr baseDescr)voidcopyLocation(BaseDescr d)ConnectiveTypegetConnective()List<BaseDescr>getDescrs()booleanisNegated()BaseDescrnegate()static ConstraintConnectiveDescrnewAnd()static ConstraintConnectiveDescrnewIncAnd()static ConstraintConnectiveDescrnewIncOr()static ConstraintConnectiveDescrnewOr()static ConstraintConnectiveDescrnewXor()voidsetConnective(ConnectiveType connective)voidsetNegated(boolean negated)voidsetResource(org.kie.api.io.Resource resource)StringtoString()-
Methods inherited from class org.drools.compiler.lang.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, getTypedAnnotation, hasAnnotation, indexByFQN, readExternal, writeExternal
-
Methods inherited from class org.drools.compiler.lang.descr.BaseDescr
accept, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setStartCharacter, setText
-
-
-
-
Constructor Detail
-
ConstraintConnectiveDescr
public ConstraintConnectiveDescr()
-
ConstraintConnectiveDescr
public ConstraintConnectiveDescr(ConnectiveType connective)
-
-
Method Detail
-
newAnd
public static ConstraintConnectiveDescr newAnd()
-
newOr
public static ConstraintConnectiveDescr newOr()
-
newXor
public static ConstraintConnectiveDescr newXor()
-
newIncAnd
public static ConstraintConnectiveDescr newIncAnd()
-
newIncOr
public static ConstraintConnectiveDescr newIncOr()
-
addDescr
public void addDescr(BaseDescr baseDescr)
-
getConnective
public ConnectiveType getConnective()
-
setConnective
public void setConnective(ConnectiveType connective)
-
addOrMerge
public void addOrMerge(BaseDescr baseDescr)
-
setResource
public void setResource(org.kie.api.io.Resource resource)
- Overrides:
setResourcein classBaseDescr
-
copyLocation
public void copyLocation(BaseDescr d)
- Overrides:
copyLocationin classBaseDescr
-
setNegated
public void setNegated(boolean negated)
-
-