edu.wpi.ebob.internal.jem.operations
Class JEMAbstractInfixOperation

java.lang.Object
  extended by edu.wpi.ebob.internal.jem.operations.JEMAbstractInfixOperation
Direct Known Subclasses:
JEMAdditionOperation, JEMDivisionOperation, JEMModulusOperation, JEMMultiplicationOperation, JEMSubtractionOperation

public abstract class JEMAbstractInfixOperation
extends java.lang.Object

Performs an infix argument accepting two arguments.

Author:
Liam Morley

Field Summary
protected static int MINUS
           
protected static int MOD
           
protected static int PLUS
           
protected static int SLASH
           
protected static int STAR
           
 
Constructor Summary
JEMAbstractInfixOperation()
           
 
Method Summary
protected  IObject performOperation(IClassManager cm, IObject[] args, int operator)
          Performs operation operator on arguments args.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUS

protected static final int PLUS
See Also:
Constant Field Values

MINUS

protected static final int MINUS
See Also:
Constant Field Values

STAR

protected static final int STAR
See Also:
Constant Field Values

SLASH

protected static final int SLASH
See Also:
Constant Field Values

MOD

protected static final int MOD
See Also:
Constant Field Values
Constructor Detail

JEMAbstractInfixOperation

public JEMAbstractInfixOperation()
Method Detail

performOperation

protected IObject performOperation(IClassManager cm,
                                   IObject[] args,
                                   int operator)
                            throws RemoteException
Performs operation operator on arguments args. There must only be 2 arguments.

Parameters:
cm - A valid JEMClassManager.
args - the arguments
operator - the operator to perform
Returns:
the result of the operation
Throws:
RemoteException