pstypes
Interface PSStackOperator

All Superinterfaces:
PSObject, PSOperator
All Known Implementing Classes:
PSClear, PSDup, PSExch, PSIndex, PSPop

public interface PSStackOperator
extends PSOperator

An object that implements this interface is defined as a stack operator.

This interface defines the group of stack operators.

All of the stack implemented operators have to check the input taken from the stack and then perfom the necessery action


Method Summary
 void action(PSStack s)
          Executes the action as it is intented.
 
Methods inherited from interface pstypes.PSOperator
getOperatorToken, isValid
 

Method Detail

action

public void action(PSStack s)
Executes the action as it is intented.

The implementor should check the input type taken from the stack and then execute the action.  If there are any results,it should be saved back in stack

Precondition : A valid stack is given to method.
Postcondition : The implemented action will be executed.

Parameters:
s - The stack where the operands are stored.