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:
Externalizable,Serializable,Namespaceable
A descriptor to represent a relational operator
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()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.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.booleanbooleanbooleanvoidvoidsetLeftIsHandle(boolean leftIsHandle) voidsetLeftString(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(String operator) voidsetParameters(List<String> parameters) voidsetRightIsHandle(boolean rightIsHandle) voidsetRightString(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.toString()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
-
Field Details
-
CUSTOM_OPERATOR_PREFIX
- See Also:
-
-
Constructor Details
-
OperatorDescr
public OperatorDescr() -
OperatorDescr
-
-
Method Details
-
getOperator
-
setOperator
-
isNegated
public boolean isNegated() -
setNegated
public void setNegated(boolean negated) -
getParameters
-
getParametersText
-
setParameters
-
getAlias
- Returns:
- the alias
-
setAlias
- Parameters:
alias- the alias to set
-
toString
-
setLeftString
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
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
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
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
-