public class BinaryExpression extends java.lang.Object implements ExpressionInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
BinaryExpression.BinaryOperator |
static class |
BinaryExpression.Builder |
| Constructor and Description |
|---|
BinaryExpression(ExpressionInterface lhs,
ExpressionInterface rhs,
BinaryExpression.BinaryOperator op) |
| Modifier and Type | Method and Description |
|---|---|
Value |
evaluate(WorkingMemory wm) |
Type |
evaluateType(WorkingMemory wm) |
java.lang.String |
toString() |
public BinaryExpression(ExpressionInterface lhs, ExpressionInterface rhs, BinaryExpression.BinaryOperator op)
public Value evaluate(WorkingMemory wm) throws java.lang.UnsupportedOperationException, NotInTheDomainException
evaluate in interface ExpressionInterfacejava.lang.UnsupportedOperationExceptionNotInTheDomainExceptionpublic Type evaluateType(WorkingMemory wm)
evaluateType in interface ExpressionInterfacewm - The WorkingMemory object with respect to which a type of an expression should be evaluatedpublic java.lang.String toString()
toString in class java.lang.Object