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 void
addDescr(BaseDescr baseDescr)
void
addOrMerge(BaseDescr baseDescr)
void
copyLocation(BaseDescr d)
ConnectiveType
getConnective()
List<BaseDescr>
getDescrs()
boolean
isNegated()
BaseDescr
negate()
static ConstraintConnectiveDescr
newAnd()
static ConstraintConnectiveDescr
newIncAnd()
static ConstraintConnectiveDescr
newIncOr()
static ConstraintConnectiveDescr
newOr()
static ConstraintConnectiveDescr
newXor()
void
setConnective(ConnectiveType connective)
void
setNegated(boolean negated)
void
setResource(org.kie.api.io.Resource resource)
String
toString()
-
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:
setResource
in classBaseDescr
-
copyLocation
public void copyLocation(BaseDescr d)
- Overrides:
copyLocation
in classBaseDescr
-
setNegated
public void setNegated(boolean negated)
-
-