org.openmrs.logic
Interface LogicExpression

All Superinterfaces:
Operand

public interface LogicExpression
extends Operand

LogicExpression is an internal representation of the LogicCriteria created through LogicService. This internal representation will be processed by the LogicService backend engine to create hibernate query.

LogicExpression has two form, the binary and unary. Binary logic expression takes the form of
LogicExpressionBinary -- (Operand Operator Operand)
LogicExpressionUnary -- (Operator Operand)


Method Summary
 Operator getOperator()
          Get the operator for the current LogicExpression
 Operand getRightOperand()
          Get the right operand of the LogicExpression.
 java.lang.String getRootToken()
          Method to get the root token of the current LogicCriteria.
 LogicTransform getTransform()
          Get the transformation expression applied to the LogicExpression
 void setTransform(LogicTransform transform)
          Set the transformation expression applied to the LogicExpression
 
Methods inherited from interface org.openmrs.logic.op.Operand
supports
 

Method Detail

getOperator

Operator getOperator()
Get the operator for the current LogicExpression

Returns:
current operator of the LogicExpression

getRootToken

java.lang.String getRootToken()
Method to get the root token of the current LogicCriteria.

Returns:
the root token of the LogicExpression
See Also:
LogicCriteria.getRootToken()

getRightOperand

Operand getRightOperand()
Get the right operand of the LogicExpression. Both LogicExpressionBinary and LogicExpressionUnary have right operand

Returns:
right operand of the LogicExpression

getTransform

LogicTransform getTransform()
Get the transformation expression applied to the LogicExpression

Returns:
transformation expression of the LogicExpression
See Also:
TransformOperator

setTransform

void setTransform(LogicTransform transform)
Set the transformation expression applied to the LogicExpression

See Also:
TransformOperator

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change