plp.imperative1.command.IfThenElse Class Reference

Inherits plp.imperative1.command.Comando.

Inheritance diagram for plp.imperative1.command.IfThenElse:

Inheritance graph
[legend]
Collaboration diagram for plp.imperative1.command.IfThenElse:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IfThenElse (Expressao expressao, Comando comandoThen, Comando comandoElse)
AmbienteExecucaoImperativa executar (AmbienteExecucaoImperativa ambiente) throws IdentificadorJaDeclaradoException, IdentificadorNaoDeclaradoException, EntradaVaziaException
boolean checaTipo (AmbienteCompilacaoImperativa ambiente) throws IdentificadorJaDeclaradoException, IdentificadorNaoDeclaradoException, EntradaVaziaException

Private Attributes

Expressao expressao
Comando comandoThen
Comando comandoElse

Detailed Description

Definition at line 11 of file IfThenElse.java.


Constructor & Destructor Documentation

plp.imperative1.command.IfThenElse.IfThenElse ( Expressao  expressao,
Comando  comandoThen,
Comando  comandoElse 
)

Definition at line 19 of file IfThenElse.java.

References plp.imperative1.command.IfThenElse.comandoElse, plp.imperative1.command.IfThenElse.comandoThen, and plp.imperative1.command.IfThenElse.expressao.


Member Function Documentation

boolean plp.imperative1.command.IfThenElse.checaTipo ( AmbienteCompilacaoImperativa  ambiente  )  throws IdentificadorJaDeclaradoException, IdentificadorNaoDeclaradoException, EntradaVaziaException

Realiza a verificacao de tipos da expressão e dos comandos do comando if then else

Parameters:
ambiente o ambiente de compilação.
Returns:
true se a expressão e os comando são bem tipados; false caso contrario.

Implements plp.imperative1.command.Comando.

Definition at line 49 of file IfThenElse.java.

References plp.imperative1.command.Comando.checaTipo(), plp.expressions2.expression.Expressao.checaTipo(), plp.imperative1.command.IfThenElse.comandoElse, plp.imperative1.command.IfThenElse.comandoThen, plp.imperative1.command.IfThenElse.expressao, and plp.expressions2.expression.Expressao.getTipo().

Here is the call graph for this function:

AmbienteExecucaoImperativa plp.imperative1.command.IfThenElse.executar ( AmbienteExecucaoImperativa  ambiente  )  throws IdentificadorJaDeclaradoException, IdentificadorNaoDeclaradoException, EntradaVaziaException

Implementa o comando if then else.

Parameters:
ambiente o ambiente de execução.
Returns:
o ambiente depois de modificado pela execução do comando if then else.

Implements plp.imperative1.command.Comando.

Definition at line 34 of file IfThenElse.java.

References plp.expressions2.expression.Expressao.avaliar(), plp.imperative1.command.IfThenElse.comandoElse, plp.imperative1.command.IfThenElse.comandoThen, plp.imperative1.command.Comando.executar(), and plp.imperative1.command.IfThenElse.expressao.

Here is the call graph for this function:


Member Data Documentation

Comando plp.imperative1.command.IfThenElse.comandoElse [private]

Definition at line 17 of file IfThenElse.java.

Referenced by plp.imperative1.command.IfThenElse.checaTipo(), plp.imperative1.command.IfThenElse.executar(), and plp.imperative1.command.IfThenElse.IfThenElse().

Comando plp.imperative1.command.IfThenElse.comandoThen [private]

Definition at line 15 of file IfThenElse.java.

Referenced by plp.imperative1.command.IfThenElse.checaTipo(), plp.imperative1.command.IfThenElse.executar(), and plp.imperative1.command.IfThenElse.IfThenElse().

Expressao plp.imperative1.command.IfThenElse.expressao [private]

Definition at line 13 of file IfThenElse.java.

Referenced by plp.imperative1.command.IfThenElse.checaTipo(), plp.imperative1.command.IfThenElse.executar(), and plp.imperative1.command.IfThenElse.IfThenElse().


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