org.ow2.opensuit.cel
Interface ICompilationContext

All Known Implementing Classes:
SimpleCompilationContext

public interface ICompilationContext

Interface for compilation context

Version:
1.0
Author:
Adrien Ruffie / Pierre Smeyers, http://opensuit.ow2.org/

Nested Class Summary
static interface ICompilationContext.ICompilationLogger
          This interface declares functions for compilation logger, the static values of different severity levels
static interface ICompilationContext.IFunctionContext
           
static class ICompilationContext.UnresolvedVariableError
           
 
Method Summary
 java.util.List<ICompilationContext.IFunctionContext> getFunctions(java.lang.String prefix, java.lang.String name)
          May return a list of compilable functions
 java.lang.reflect.Type getVariableGenericType(java.lang.String iName)
          Allow to recover generic located into this context by providing a name of object.
 java.lang.Class<?> getVariableType(java.lang.String iName)
          Allow to recover located into this context by providing a name of object.
 

Method Detail

getVariableType

java.lang.Class<?> getVariableType(java.lang.String iName)
                                   throws ICompilationContext.UnresolvedVariableError
Allow to recover located into this context by providing a name of object. Example: - request return HttpServletRequest - locale return Locale

Parameters:
iName - The name of the object
Returns:
Return from the context, the type of the requested object
Throws:
ICompilationContext.UnresolvedVariableError

getVariableGenericType

java.lang.reflect.Type getVariableGenericType(java.lang.String iName)
                                              throws ICompilationContext.UnresolvedVariableError
Allow to recover generic located into this context by providing a name of object. Example:

Parameters:
iName - The name of the object
Returns:
Return from the context, the of the requested object
Throws:
ICompilationContext.UnresolvedVariableError

getFunctions

java.util.List<ICompilationContext.IFunctionContext> getFunctions(java.lang.String prefix,
                                                                  java.lang.String name)
May return a list of compilable functions

Parameters:
prefix - The prefix of the functions
name - The name of the functions
Returns:
List


Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.