jpel.language
Class DeclarationNative

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

public class DeclarationNative
extends DeclarationFunction

Classe que permite a adição de funções nativas ao ambiente de execução.


Constructor Summary
DeclarationNative(jpel.language.ExpressionId module, jpel.language.ExpressionId name, jpel.language.Abstraction abstraction)
           
 
Method Summary
 void execute(jpel.language.Environment env)
          Executa a declaração no ambiente fornecido.
 jpel.language.Declaration rebuild(jpel.language.MapReplace map)
          Reconstroi uma declaraçao usando um mapeamento.
 java.lang.String toString()
           
 
Methods inherited from class jpel.language.DeclarationFunction
getAbstraction, setAbstraction
 
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

DeclarationNative

public DeclarationNative(jpel.language.ExpressionId module,
                         jpel.language.ExpressionId name,
                         jpel.language.Abstraction abstraction)
                  throws DeclarationException
Method Detail

execute

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

Specified by:
execute in interface Declaration
Overrides:
execute in class DeclarationFunction
Parameters:
env - 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.

Specified by:
rebuild in interface Declaration
Overrides:
rebuild in class DeclarationFunction
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