org.drools.lang.descr
Class ConnectiveDescr
java.lang.Object
org.drools.lang.descr.BaseDescr
org.drools.lang.descr.RestrictionDescr
org.drools.lang.descr.ConnectiveDescr
- All Implemented Interfaces:
- Externalizable, Serializable
public class ConnectiveDescr
- extends RestrictionDescr
This is used to connect restrictions together for a single field
eg:
age < 40 & > 30
- See Also:
- Serialized Form
Methods inherited from class org.drools.lang.descr.BaseDescr |
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, getText, readExternal, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText, writeExternal |
AND
public static final ConnectiveDescr.RestrictionConnectiveType AND
OR
public static final ConnectiveDescr.RestrictionConnectiveType OR
ConnectiveDescr
public ConnectiveDescr(ConnectiveDescr.RestrictionConnectiveType connective)
getConnective
public ConnectiveDescr.RestrictionConnectiveType getConnective()
isParen
public boolean isParen()
setParen
public void setParen(boolean paren)
getPrefix
public String getPrefix()
setPrefix
public void setPrefix(String prefix)
add
public void add(ConnectiveDescr restriction)
add
public void add(String restriction)
getRestrictions
public List<Object> getRestrictions()
buildExpression
public void buildExpression(StringBuilder sb)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.