org.drools.lang.descr
Class ConstraintConnectiveDescr
java.lang.Object
org.drools.lang.descr.BaseDescr
org.drools.lang.descr.AnnotatedBaseDescr
org.drools.lang.descr.ConstraintConnectiveDescr
- All Implemented Interfaces:
- Externalizable, Serializable, Namespaceable
public class ConstraintConnectiveDescr
- extends AnnotatedBaseDescr
A descriptor to represent logical connectives in constraints, like
&&, || and ^.
- See Also:
- Serialized Form
Methods inherited from class org.drools.lang.descr.BaseDescr |
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText |
ConstraintConnectiveDescr
public ConstraintConnectiveDescr()
ConstraintConnectiveDescr
public ConstraintConnectiveDescr(ConnectiveType connective)
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)
getDescrs
public List<BaseDescr> getDescrs()
getConnective
public ConnectiveType getConnective()
setConnective
public void setConnective(ConnectiveType connective)
addOrMerge
public void addOrMerge(BaseDescr baseDescr)
toString
public String toString()
- Overrides:
toString
in class Object
copyLocation
public void copyLocation(BaseDescr d)
- Overrides:
copyLocation
in class BaseDescr
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.