pstypes
Interface PSStringOperator

All Superinterfaces:
PSObject, PSOperator
All Known Implementing Classes:
PSGet, PSLength, PSStr

public interface PSStringOperator
extends PSOperator

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

This interface defines the group of string operators.

All the string operators must check if the input taken is valid and determine on which type of literals the string 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)
Executes the action as it is intented.

The implementor determines the kind of the string operator 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 and if there are any results,it will be saved in the stack .

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