public class OperationHelper
extends java.lang.Object
Constructor and Description |
---|
OperationHelper() |
Modifier and Type | Method and Description |
---|---|
static Value |
performOperation(Operation op,
Value value)
Used to perform a operation on one value
|
static Value |
performOperation(Operation op,
Value value1,
Value value2)
Used to perform a operation on two values
|
public static Value performOperation(Operation op, Value value1, Value value2) throws ExpressionParserException
op
- The operationvalue1
- The fist valuevalue2
- The second valueExpressionParserException
- Thrown if their is a expression problempublic static Value performOperation(Operation op, Value value)
op
- The operationvalue
- The valueExpressionParserException
- Thrown if their is a expression problem