pstypes
Interface PSFlowOperator

All Superinterfaces:
PSObject, PSOperator
All Known Implementing Classes:
PSExit, PSFor, PSIf, PSIfelse, PSLoop

public interface PSFlowOperator
extends PSOperator

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

This interface defines the group of flow control operators.

All the flow control operators must check if the input taken is valid and determine on which type of literals the flow control functions will be perfomed. 


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)
            throws java.lang.Throwable
Executes the action as it is intented.

The implementor determines the kind of the equality that will be held as well as the type of operands needed.

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

Parameters:
s - The stack where the operands are stored.
Throws:
java.lang.Throwable