jpel.language
Class EnvironmentFactoryImpl

java.lang.Object
  |
  +--jpel.language.EnvironmentFactoryImpl
All Implemented Interfaces:
EnvironmentFactory

public class EnvironmentFactoryImpl
extends java.lang.Object
implements EnvironmentFactory

Implementação padrão da fábrica de ambientes.


Field Summary
static java.lang.String BODY
           
static java.lang.String COMMENT
           
static java.lang.String FORMAL
           
 
Constructor Summary
EnvironmentFactoryImpl()
           
EnvironmentFactoryImpl(jpel.language.ExpressionParser parser)
           
 
Method Summary
 jpel.language.Environment empty()
          Retorna um ambiente vazio para a execuçao de expressões.
 jpel.language.ExpressionParser getParser()
           
 boolean isLang(jpel.language.ExpressionId id)
          Indica se um identificador faz parte da lista de operadores padrão.
protected  void populate(jpel.language.Environment env)
           
protected  void populateSystem(jpel.language.Environment env)
           
 jpel.language.Environment produce()
          Retorna um ambiente para execução de expressões.
 void setParser(jpel.language.ExpressionParser parser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMENT

public static final java.lang.String COMMENT
See Also:
Constant Field Values

FORMAL

public static final java.lang.String FORMAL
See Also:
Constant Field Values

BODY

public static final java.lang.String BODY
See Also:
Constant Field Values
Constructor Detail

EnvironmentFactoryImpl

public EnvironmentFactoryImpl()

EnvironmentFactoryImpl

public EnvironmentFactoryImpl(jpel.language.ExpressionParser parser)
Method Detail

getParser

public jpel.language.ExpressionParser getParser()

setParser

public void setParser(jpel.language.ExpressionParser parser)

isLang

public boolean isLang(jpel.language.ExpressionId id)
Description copied from interface: EnvironmentFactory
Indica se um identificador faz parte da lista de operadores padrão.

Specified by:
isLang in interface EnvironmentFactory
Parameters:
id - O identificador.
Returns:
true, caso seja operador padrão, false, caso contrário.

empty

public jpel.language.Environment empty()
                                throws EnvironmentFactoryException
Description copied from interface: EnvironmentFactory
Retorna um ambiente vazio para a execuçao de expressões.

Specified by:
empty in interface EnvironmentFactory
Returns:
O ambiente.
Throws:
EnvironmentFactoryException - Quando há erro na criação do ambiente.

produce

public jpel.language.Environment produce()
                                  throws EnvironmentFactoryException
Description copied from interface: EnvironmentFactory
Retorna um ambiente para execução de expressões.

Specified by:
produce in interface EnvironmentFactory
Returns:
O ambiente.
Throws:
EnvironmentFactoryException - Quando há erro na criação do ambiente.

populate

protected void populate(jpel.language.Environment env)
                 throws DeclarationException,
                        EnvironmentFactoryException
DeclarationException
EnvironmentFactoryException

populateSystem

protected void populateSystem(jpel.language.Environment env)
                       throws DeclarationException,
                              EnvironmentFactoryException
DeclarationException
EnvironmentFactoryException