Package org.drools.compiler.lang.descr
Class OperatorDescr
- java.lang.Object
-
- org.drools.compiler.lang.descr.BaseDescr
-
- org.drools.compiler.lang.descr.OperatorDescr
-
- All Implemented Interfaces:
Externalizable
,Serializable
,org.drools.core.rule.Namespaceable
public class OperatorDescr extends BaseDescr
A descriptor to represent a relational operator- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OperatorDescr()
OperatorDescr(String operator, boolean negated, List<String> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlias()
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.String
getOperator()
List<String>
getParameters()
String
getParametersText()
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.boolean
isLeftIsHandle()
boolean
isNegated()
boolean
isRightIsHandle()
void
setAlias(String alias)
void
setLeftIsHandle(boolean leftIsHandle)
void
setLeftString(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.void
setNegated(boolean negated)
void
setOperator(String operator)
void
setParameters(List<String> parameters)
void
setRightIsHandle(boolean rightIsHandle)
void
setRightString(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.String
toString()
-
Methods inherited from class org.drools.compiler.lang.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 String getOperator()
-
setOperator
public void setOperator(String operator)
-
setNegated
public void setNegated(boolean negated)
-
getParametersText
public String getParametersText()
-
getAlias
public String getAlias()
- Returns:
- the alias
-
setAlias
public void setAlias(String alias)
- Parameters:
alias
- the alias to set
-
setLeftString
public void setLeftString(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(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 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 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
-
-