plp.functional1.expression.IfThenElse Class Reference

Inherits plp.expressions2.expression.Expressao.

Inheritance diagram for plp.functional1.expression.IfThenElse:

Inheritance graph
[legend]
Collaboration diagram for plp.functional1.expression.IfThenElse:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IfThenElse (Expressao teste, Expressao thenExpressao, Expressao elseExpressao)
Valor avaliar (AmbienteExecucao ambiente) throws VariavelNaoDeclaradaException, VariavelJaDeclaradaException
String toString ()
boolean checaTipo (AmbienteCompilacao amb) throws VariavelNaoDeclaradaException, VariavelJaDeclaradaException
Tipo getTipo (AmbienteCompilacao amb) throws VariavelNaoDeclaradaException, VariavelJaDeclaradaException
Expressao getCondicao ()
Expressao getThen ()
Expressao getElseExpressao ()

Package Attributes

Expressao condicao
Expressao then
Expressao elseExpressao

Detailed Description

Definition at line 12 of file IfThenElse.java.


Constructor & Destructor Documentation

plp.functional1.expression.IfThenElse.IfThenElse ( Expressao  teste,
Expressao  thenExpressao,
Expressao  elseExpressao 
)

Definition at line 17 of file IfThenElse.java.

References plp.functional1.expression.IfThenElse.elseExpressao.


Member Function Documentation

Valor plp.functional1.expression.IfThenElse.avaliar ( AmbienteExecucao  ambiente  )  throws VariavelNaoDeclaradaException, VariavelJaDeclaradaException

Avalia a expressao retornando seu Valor.

Implements plp.expressions2.expression.Expressao.

Definition at line 26 of file IfThenElse.java.

References plp.expressions2.expression.Expressao.avaliar(), plp.functional1.expression.IfThenElse.condicao, plp.functional1.expression.IfThenElse.elseExpressao, and plp.functional1.expression.IfThenElse.then.

Here is the call graph for this function:

boolean plp.functional1.expression.IfThenElse.checaTipo ( AmbienteCompilacao  amb  )  throws VariavelNaoDeclaradaException, VariavelJaDeclaradaException

Realiza a verificacao de tipos desta expressao.

Parameters:
amb o ambiente de compilação.
Returns:
true se os tipos da expressao sao validos; false caso contrario.
Exceptions:
VariavelNaoDeclaradaException se existir um identificador nao declarado no ambiente.
VariavelNaoDeclaradaException se existir um identificador declarado mais de uma vez no mesmo bloco do ambiente.

Implements plp.expressions2.expression.Expressao.

Definition at line 60 of file IfThenElse.java.

References plp.functional1.expression.IfThenElse.condicao, plp.expressions1.util.Tipo.eBooleano(), plp.functional1.expression.IfThenElse.elseExpressao, plp.expressions2.expression.Expressao.getTipo(), plp.expressions1.util.Tipo.intersecao(), and plp.functional1.expression.IfThenElse.then.

Here is the call graph for this function:

Expressao plp.functional1.expression.IfThenElse.getCondicao (  ) 

Returns the condicao.

Returns:
Expressao

Definition at line 91 of file IfThenElse.java.

References plp.functional1.expression.IfThenElse.condicao.

Referenced by plp.functional2.util.PartialInstantiatorVisitor._visitIfThenElse(), and plp.functional1.util.RestrictTypesVisitor._visitIfThenElse().

Expressao plp.functional1.expression.IfThenElse.getElseExpressao (  ) 

Returns the elseExpressao.

Returns:
Expressao

Definition at line 107 of file IfThenElse.java.

References plp.functional1.expression.IfThenElse.elseExpressao.

Referenced by plp.functional2.util.PartialInstantiatorVisitor._visitIfThenElse(), and plp.functional1.util.RestrictTypesVisitor._visitIfThenElse().

Expressao plp.functional1.expression.IfThenElse.getThen (  ) 

Returns the then.

Returns:
Expressao

Definition at line 99 of file IfThenElse.java.

References plp.functional1.expression.IfThenElse.then.

Referenced by plp.functional2.util.PartialInstantiatorVisitor._visitIfThenElse(), and plp.functional1.util.RestrictTypesVisitor._visitIfThenElse().

Tipo plp.functional1.expression.IfThenElse.getTipo ( AmbienteCompilacao  amb  )  throws VariavelNaoDeclaradaException, VariavelJaDeclaradaException

Retorna os tipos possiveis desta expressao.

Parameters:
amb o ambiente de compilação.
Returns:
os tipos possiveis desta expressao.
Exceptions:
VariavelNaoDeclaradaException se existir um identificador nao declarado no ambiente.
VariavelNaoDeclaradaException se existir um identificador declarado mais de uma vez no mesmo bloco do ambiente.

Implements plp.expressions2.expression.Expressao.

Definition at line 82 of file IfThenElse.java.

References plp.functional1.expression.IfThenElse.elseExpressao, plp.expressions2.expression.Expressao.getTipo(), plp.expressions1.util.Tipo.intersecao(), and plp.functional1.expression.IfThenElse.then.

Here is the call graph for this function:

String plp.functional1.expression.IfThenElse.toString (  ) 

Retorna texto representando um objeto desta classe.

Definition at line 37 of file IfThenElse.java.

References plp.functional1.expression.IfThenElse.condicao, plp.functional1.expression.IfThenElse.elseExpressao, and plp.functional1.expression.IfThenElse.then.


Member Data Documentation

Expressao plp.functional1.expression.IfThenElse.condicao [package]

Definition at line 13 of file IfThenElse.java.

Referenced by plp.functional1.expression.IfThenElse.avaliar(), plp.functional1.expression.IfThenElse.checaTipo(), plp.functional1.expression.IfThenElse.getCondicao(), and plp.functional1.expression.IfThenElse.toString().

Expressao plp.functional1.expression.IfThenElse.elseExpressao [package]

Definition at line 15 of file IfThenElse.java.

Referenced by plp.functional1.expression.IfThenElse.avaliar(), plp.functional1.expression.IfThenElse.checaTipo(), plp.functional1.expression.IfThenElse.getElseExpressao(), plp.functional1.expression.IfThenElse.getTipo(), plp.functional1.expression.IfThenElse.IfThenElse(), and plp.functional1.expression.IfThenElse.toString().

Expressao plp.functional1.expression.IfThenElse.then [package]

Definition at line 14 of file IfThenElse.java.

Referenced by plp.functional1.expression.IfThenElse.avaliar(), plp.functional1.expression.IfThenElse.checaTipo(), plp.functional1.expression.IfThenElse.getThen(), plp.functional1.expression.IfThenElse.getTipo(), and plp.functional1.expression.IfThenElse.toString().


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