jpel.language
Class DeclarationModule

java.lang.Object
  |
  +--jpel.language.AbstractDeclaration
        |
        +--jpel.language.DeclarationModule
All Implemented Interfaces:
Declaration

public class DeclarationModule
extends AbstractDeclaration

Classe que permite a ciração de módulos dentro da linguagem.


Constructor Summary
DeclarationModule(jpel.language.ExpressionId module, jpel.language.ExpressionId name, jpel.language.Environment subEnvironment)
           
 
Method Summary
 void execute(jpel.language.Environment environment)
          Executa a declaração no ambiente fornecido.
 jpel.language.Environment getSubEnvironment()
           
 jpel.language.Declaration rebuild(jpel.language.MapReplace map)
          Reconstroi uma declaraçao usando um mapeamento.
 void setSubEnvironment(jpel.language.Environment subEnvironment)
           
 java.lang.String toString()
           
 
Methods inherited from class jpel.language.AbstractDeclaration
getDescription, getModule, getName, getType, setDescription, setModule, setName, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeclarationModule

public DeclarationModule(jpel.language.ExpressionId module,
                         jpel.language.ExpressionId name,
                         jpel.language.Environment subEnvironment)
Method Detail

setSubEnvironment

public void setSubEnvironment(jpel.language.Environment subEnvironment)

getSubEnvironment

public jpel.language.Environment getSubEnvironment()

execute

public void execute(jpel.language.Environment environment)
             throws DeclarationException
Description copied from interface: Declaration
Executa a declaração no ambiente fornecido.

Parameters:
environment - O ambiente onde a declaração deve ser executada.
DeclarationException

rebuild

public jpel.language.Declaration rebuild(jpel.language.MapReplace map)
Description copied from interface: Declaration
Reconstroi uma declaraçao usando um mapeamento.

Parameters:
map - O mapeamento da subsitituiçao.
Returns:
Uma declaração com as variáveis substituídas.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object