org.drools.lang.descr
Class OperatorDescr

java.lang.Object
  extended by org.drools.lang.descr.BaseDescr
      extended by org.drools.lang.descr.OperatorDescr
All Implemented Interfaces:
Externalizable, Serializable

public class OperatorDescr
extends BaseDescr

A descriptor to represent a relational operator

See Also:
Serialized Form

Constructor Summary
OperatorDescr()
           
OperatorDescr(String operator, boolean negated, List<String> parameters)
           
 
Method Summary
 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.lang.descr.BaseDescr
getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getStartCharacter, getText, readExternal, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperatorDescr

public OperatorDescr()

OperatorDescr

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

getOperator

public String getOperator()

setOperator

public void setOperator(String operator)

isNegated

public boolean isNegated()

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


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.