org.millscript.millscript.action.arithmetic
Class ConstantRightModAction

java.lang.Object
  extended by org.millscript.millscript.action.Action
      extended by org.millscript.millscript.action.UnaryOpAction
          extended by org.millscript.millscript.action.arithmetic.ConstantRightModAction
All Implemented Interfaces:
org.millscript.commons.alert.AlertOrigin

public final class ConstantRightModAction
extends UnaryOpAction

This class implements the mod action with a constant right hand value.


Constructor Summary
ConstantRightModAction(Action left, int right)
          Constructs a new mod action, to get the remainder from dividing the result of the left hand side action by the right.
 
Method Summary
 java.lang.Object perform(java.lang.Object x)
          Performs this binary action on the specified value.
 
Methods inherited from class org.millscript.millscript.action.UnaryOpAction
action
 
Methods inherited from class org.millscript.millscript.action.Action
act, act1, getLineNumber, getOrigin, predAct, setContext, setLineNumber, setOrigin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantRightModAction

public ConstantRightModAction(Action left,
                              int right)
Constructs a new mod action, to get the remainder from dividing the result of the left hand side action by the right.

Parameters:
left - the left hand side action
right - the right hand side action
Method Detail

perform

public java.lang.Object perform(java.lang.Object x)
Description copied from class: UnaryOpAction
Performs this binary action on the specified value.

Specified by:
perform in class UnaryOpAction
Parameters:
x - the unary value
Returns:
the result of this unary action
See Also:
UnaryOpAction.perform(java.lang.Object)


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.