jpel.language
Class DeclarationFunction
java.lang.Object
|
+--jpel.language.AbstractDeclaration
|
+--jpel.language.DeclarationFunction
- All Implemented Interfaces:
- Declaration
- Direct Known Subclasses:
- DeclarationNative
- public class DeclarationFunction
- extends AbstractDeclaration
Classe que permite a adição de funções ao ambiente de execução.
Constructor Summary |
DeclarationFunction(jpel.language.DeclarationType type,
jpel.language.ExpressionId module,
jpel.language.ExpressionId name,
jpel.language.Abstraction abstraction)
|
DeclarationFunction(jpel.language.ExpressionId module,
jpel.language.ExpressionId name,
jpel.language.Abstraction abstraction)
|
Method Summary |
void |
execute(jpel.language.Environment environment)
Executa a declaração no ambiente fornecido. |
jpel.language.Abstraction |
getAbstraction()
|
jpel.language.Declaration |
rebuild(jpel.language.MapReplace map)
Reconstroi uma declaraçao usando um mapeamento. |
void |
setAbstraction(jpel.language.Abstraction abstraction)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeclarationFunction
public DeclarationFunction(jpel.language.ExpressionId module,
jpel.language.ExpressionId name,
jpel.language.Abstraction abstraction)
DeclarationFunction
public DeclarationFunction(jpel.language.DeclarationType type,
jpel.language.ExpressionId module,
jpel.language.ExpressionId name,
jpel.language.Abstraction abstraction)
setAbstraction
public void setAbstraction(jpel.language.Abstraction abstraction)
getAbstraction
public jpel.language.Abstraction getAbstraction()
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.