Package org.drools.drl.ast.descr
Class OperatorDescr
- java.lang.Object
-
- org.drools.drl.ast.descr.BaseDescr
-
- org.drools.drl.ast.descr.OperatorDescr
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,Namespaceable
public class OperatorDescr extends BaseDescr
A descriptor to represent a relational operator- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OperatorDescr()OperatorDescr(java.lang.String operator, boolean negated, java.util.List<java.lang.String> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlias()java.lang.StringgetLeftString()This is an internal cache of the left string parameter that is set during the rewrite into MVEL, allowing for further analysis of the parameter type.java.lang.StringgetOperator()java.util.List<java.lang.String>getParameters()java.lang.StringgetParametersText()java.lang.StringgetRightString()This is an internal cache of the right string parameter that is set during the rewrite into MVEL, allowing for further analysis of the parameter type.booleanisLeftIsHandle()booleanisNegated()booleanisRightIsHandle()voidsetAlias(java.lang.String alias)voidsetLeftIsHandle(boolean leftIsHandle)voidsetLeftString(java.lang.String left)This is an internal cache of the left string parameter that is set during the rewrite into MVEL, allowing for further analysis of the parameter type.voidsetNegated(boolean negated)voidsetOperator(java.lang.String operator)voidsetParameters(java.util.List<java.lang.String> parameters)voidsetRightIsHandle(boolean rightIsHandle)voidsetRightString(java.lang.String right)This is an internal cache of the right string parameter that is set during the rewrite into MVEL, allowing for further analysis of the parameter type.java.lang.StringtoString()-
Methods inherited from class org.drools.drl.ast.descr.BaseDescr
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, negate, positionAsString, readExternal, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText, writeExternal
-
-
-
-
Method Detail
-
getOperator
public java.lang.String getOperator()
-
setOperator
public void setOperator(java.lang.String operator)
-
setNegated
public void setNegated(boolean negated)
-
getParameters
public java.util.List<java.lang.String> getParameters()
-
getParametersText
public java.lang.String getParametersText()
-
setParameters
public void setParameters(java.util.List<java.lang.String> parameters)
-
getAlias
public java.lang.String getAlias()
- Returns:
- the alias
-
setAlias
public void setAlias(java.lang.String alias)
- Parameters:
alias- the alias to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setLeftString
public void setLeftString(java.lang.String left)
This is an internal cache of the left string parameter that is set during the rewrite into MVEL, allowing for further analysis of the parameter type.- Parameters:
left-
-
setRightString
public void setRightString(java.lang.String right)
This is an internal cache of the right string parameter that is set during the rewrite into MVEL, allowing for further analysis of the parameter type.- Parameters:
right-
-
getLeftString
public java.lang.String getLeftString()
This is an internal cache of the left string parameter that is set during the rewrite into MVEL, allowing for further analysis of the parameter type.- Returns:
- the leftString
-
getRightString
public java.lang.String getRightString()
This is an internal cache of the right string parameter that is set during the rewrite into MVEL, allowing for further analysis of the parameter type.- Returns:
- the rightString
-
isLeftIsHandle
public boolean isLeftIsHandle()
- Returns:
- the leftIsHandle
-
setLeftIsHandle
public void setLeftIsHandle(boolean leftIsHandle)
- Parameters:
leftIsHandle- the leftIsHandle to set
-
isRightIsHandle
public boolean isRightIsHandle()
- Returns:
- the rightIsHandle
-
setRightIsHandle
public void setRightIsHandle(boolean rightIsHandle)
- Parameters:
rightIsHandle- the rightIsHandle to set
-
-