edu.wpi.ebob.internal.jem.operations
Class JEMAbstractInfixOperation
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JEMAbstractInfixOperation
public JEMAbstractInfixOperation()
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 argumentsoperator
- the operator to perform
- Returns:
- the result of the operation
- Throws:
RemoteException