org.stanwood.media.source.xbmc.expression
Class OperationHelper

java.lang.Object
  extended by org.stanwood.media.source.xbmc.expression.OperationHelper

public class OperationHelper
extends java.lang.Object

Used to help with expression evaluation operations


Constructor Summary
OperationHelper()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationHelper

public OperationHelper()
Method Detail

performOperation

public static Value performOperation(Operation op,
                                     Value value1,
                                     Value value2)
                              throws ExpressionParserException
Used to perform a operation on two values

Parameters:
op - The operation
value1 - The fist value
value2 - The second value
Returns:
The result
Throws:
ExpressionParserException - Thrown if their is a expression problem

performOperation

public static Value performOperation(Operation op,
                                     Value value)
Used to perform a operation on one value

Parameters:
op - The operation
value - The value
Returns:
The result
Throws:
ExpressionParserException - Thrown if their is a expression problem