Class OperatorDescr

java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.OperatorDescr
All Implemented Interfaces:
Externalizable, Serializable, Namespaceable

public class OperatorDescr extends BaseDescr
A descriptor to represent a relational operator
See Also:
  • Field Details

  • Constructor Details

    • OperatorDescr

      public OperatorDescr()
    • OperatorDescr

      public OperatorDescr(String operator, boolean negated, List<String> parameters)
  • Method Details

    • getOperator

      public String getOperator()
    • setOperator

      public void setOperator(String operator)
    • isNegated

      public boolean isNegated()
      Overrides:
      isNegated in class BaseDescr
    • setNegated

      public void setNegated(boolean negated)
    • getParameters

      public List<String> getParameters()
    • getParametersText

      public String getParametersText()
    • setParameters

      public void setParameters(List<String> parameters)
    • getAlias

      public String getAlias()
      Returns:
      the alias
    • setAlias

      public void setAlias(String alias)
      Parameters:
      alias - the alias to set
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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