Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

Throw.java

Go to the documentation of this file.
00001 package plp.orientadaObjetos1.comando;
00002 
00003 import plp.orientadaObjetos1.excecao.comando.TryCatchException;
00004 import plp.orientadaObjetos1.memoria.AmbienteCompilacao;
00005 import plp.orientadaObjetos1.memoria.AmbienteExecucao;
00006 
00007 public class Throw implements Comando{
00008 
00009     private String mensagem;
00010     
00011     public Throw( String mensagem) {
00012         this.mensagem = mensagem;
00013     }
00014     
00020     public AmbienteExecucao executar(AmbienteExecucao ambiente) throws TryCatchException {
00021         throw new TryCatchException( mensagem);
00022     }
00023 
00030     public boolean checaTipo(AmbienteCompilacao ambiente) {
00031         return true;
00032     }
00033 }

Generated on Mon Aug 8 20:20:46 2005 for Linguagem OO1 - Generics by  doxygen 1.4.4