public class UnaryExpression extends java.lang.Object implements ExpressionInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
UnaryExpression.Builder |
static class |
UnaryExpression.UnaryOperator |
| Constructor and Description |
|---|
UnaryExpression(ExpressionInterface arg,
UnaryExpression.UnaryOperator op) |
| Modifier and Type | Method and Description |
|---|---|
Value |
evaluate(WorkingMemory wm) |
Type |
evaluateType(WorkingMemory wm)
It returns the type of the operand.
|
java.lang.String |
toString() |
public UnaryExpression(ExpressionInterface arg, UnaryExpression.UnaryOperator 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