plp.expressions2.memory.StackHandler Class Reference

List of all members.

Static Public Member Functions

static Object getFromId (Stack stack, Id id) throws IdentificadorNaoDeclaradoException
static void mapIdObject (Stack stack, Id id, Object object) throws IdentificadorJaDeclaradoException

Private Member Functions

 StackHandler ()

Detailed Description

Author:
bldb, efas, jcbr, srmq
This class performs some utility operations over a Stack

Definition at line 13 of file StackHandler.java.


Constructor & Destructor Documentation

plp.expressions2.memory.StackHandler.StackHandler (  )  [private]

Definition at line 15 of file StackHandler.java.


Member Function Documentation

static Object plp.expressions2.memory.StackHandler.getFromId ( Stack  stack,
Id  id 
) throws IdentificadorNaoDeclaradoException [static]

Looks for the object whose Id is 'id' on the mappings that exist on the specified Stack.

Parameters:
stack,the Stack which contains the mappings (Id->Object)
id,the Id of the desired object.
Returns:
an Object indexed by the Id
Exceptions:
IdentificadorNaoDeclaradoException if there is not any object indexed by 'id'

Definition at line 27 of file StackHandler.java.

static void plp.expressions2.memory.StackHandler.mapIdObject ( Stack  stack,
Id  id,
Object  object 
) throws IdentificadorJaDeclaradoException [static]

Adds a mapping on the specified Stack

Parameters:
stack,the Stack which contains the mappings
id,the Id that will index the new object
object,the content that will be indexed
Exceptions:
VariavelJaDeclaradaException,if 'id' is already used in an existing mapping

Definition at line 54 of file StackHandler.java.


The documentation for this class was generated from the following file:
Generated on Tue Sep 12 21:55:23 2006 for PLP by  doxygen 1.4.7