plp.orientadaObjetos2.memoria
Class ContextoExecucaoOO2

java.lang.Object
  extended by plp.orientadaObjetos1.memoria.ContextoExecucao
      extended by plp.orientadaObjetos2.memoria.ContextoExecucaoOO2
All Implemented Interfaces:
Ambiente, AmbienteExecucao, AmbienteExecucaoOO2

public class ContextoExecucaoOO2
extends ContextoExecucao
implements AmbienteExecucaoOO2


Constructor Summary
ContextoExecucaoOO2()
           
ContextoExecucaoOO2(AmbienteExecucao ambiente)
           
 
Method Summary
 java.util.Map<Id,Id> getMapSuperClasse()
           
 DefClasse getSuperClasse(Id classe)
          Dado um identificador da classe, recupera a super-classe
 void mapSuperClasse(Id classe, Id superClasse)
          Mapeia um identificador de classe com o identificador da super-classe.
 
Methods inherited from class plp.orientadaObjetos1.memoria.ContextoExecucao
changeValor, getContextoIdValor, getDefClasse, getEntrada, getObjeto, getPilha, getPilhaDefClasse, getPilhaObjeto, getProxRef, getRef, getSaida, getValor, incrementa, mapDefClasse, mapObjeto, mapValor, read, restaura, toString, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface plp.orientadaObjetos1.memoria.AmbienteExecucao
changeValor, getContextoIdValor, getDefClasse, getEntrada, getObjeto, getPilha, getPilhaDefClasse, getPilhaObjeto, getProxRef, getRef, getSaida, getValor, mapDefClasse, mapObjeto, mapValor, read, write
 
Methods inherited from interface plp.orientadaObjetos1.memoria.Ambiente
incrementa, restaura
 

Constructor Detail

ContextoExecucaoOO2

public ContextoExecucaoOO2()

ContextoExecucaoOO2

public ContextoExecucaoOO2(AmbienteExecucao ambiente)
                    throws VariavelJaDeclaradaException
Throws:
VariavelJaDeclaradaException
Method Detail

mapSuperClasse

public void mapSuperClasse(Id classe,
                           Id superClasse)
                    throws ClasseNaoDeclaradaException
Description copied from interface: AmbienteExecucaoOO2
Mapeia um identificador de classe com o identificador da super-classe.

Specified by:
mapSuperClasse in interface AmbienteExecucaoOO2
Parameters:
classe - identificador da sub-classe
superClasse - identificador da super-classe
Throws:
ClasseNaoDeclaradaException - Quando a super-classe nao foi declarada

getSuperClasse

public DefClasse getSuperClasse(Id classe)
                         throws ClasseNaoDeclaradaException
Description copied from interface: AmbienteExecucaoOO2
Dado um identificador da classe, recupera a super-classe

Specified by:
getSuperClasse in interface AmbienteExecucaoOO2
Parameters:
classe - identificador da classe base
Returns:
Definicao da super classe
Throws:
ClasseNaoDeclaradaException - Quando a classe ainda nao foi definida

getMapSuperClasse

public java.util.Map<Id,Id> getMapSuperClasse()
Specified by:
getMapSuperClasse in interface AmbienteExecucaoOO2