org.drools.lang.descr
Class ConstraintConnectiveDescr

java.lang.Object
  extended by org.drools.lang.descr.BaseDescr
      extended by org.drools.lang.descr.ConstraintConnectiveDescr
All Implemented Interfaces:
Externalizable, Serializable

public class ConstraintConnectiveDescr
extends BaseDescr

A descriptor to represent logical connectives in constraints, like &&, || and ^.

See Also:
Serialized Form

Constructor Summary
ConstraintConnectiveDescr()
           
ConstraintConnectiveDescr(ConnectiveType connective)
           
 
Method Summary
 void addDescr(BaseDescr baseDescr)
           
 void addOrMerge(BaseDescr baseDescr)
           
 ConnectiveType getConnective()
           
 List<BaseDescr> getDescrs()
           
static ConstraintConnectiveDescr newAnd()
           
static ConstraintConnectiveDescr newIncAnd()
           
static ConstraintConnectiveDescr newIncOr()
           
static ConstraintConnectiveDescr newOr()
           
static ConstraintConnectiveDescr newXor()
           
 void setConnective(ConnectiveType connective)
           
 String toString()
           
 
Methods inherited from class org.drools.lang.descr.BaseDescr
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, getText, readExternal, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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)

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


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.