org.drools.compiler.lang.descr
Class ConnectiveDescr
java.lang.Object
org.drools.compiler.lang.descr.BaseDescr
org.drools.compiler.lang.descr.RestrictionDescr
org.drools.compiler.lang.descr.ConnectiveDescr
- All Implemented Interfaces:
- Externalizable, Serializable, org.drools.core.rule.Namespaceable
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.compiler.lang.descr.BaseDescr |
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText |
AND
public static final ConnectiveDescr.RestrictionConnectiveType AND
OR
public static final ConnectiveDescr.RestrictionConnectiveType OR
ConnectiveDescr
public ConnectiveDescr()
ConnectiveDescr
public ConnectiveDescr(ConnectiveDescr.RestrictionConnectiveType connective)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable- Overrides:
readExternal in class BaseDescr
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable- Overrides:
writeExternal in class BaseDescr
- Throws:
IOException
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-2015 JBoss by Red Hat. All Rights Reserved.