org.drools.lang.descr
Class ConstraintConnectiveDescr

java.lang.Object
  extended by org.drools.lang.descr.BaseDescr
      extended by org.drools.lang.descr.AnnotatedBaseDescr
          extended by 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

Constructor Summary
ConstraintConnectiveDescr()
           
ConstraintConnectiveDescr(ConnectiveType connective)
           
 
Method Summary
 void addDescr(BaseDescr baseDescr)
           
 void addOrMerge(BaseDescr baseDescr)
           
 void copyLocation(BaseDescr d)
           
 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.AnnotatedBaseDescr
addAnnotation, addAnnotation, getAnnotation, getAnnotationNames, getAnnotations, readExternal, writeExternal
 
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
 
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

copyLocation

public void copyLocation(BaseDescr d)
Overrides:
copyLocation in class BaseDescr


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.