org.ow2.opensuit.cel.util
Class SimpleEvaluationContext

java.lang.Object
  extended by org.ow2.opensuit.cel.util.SimpleEvaluationContext
All Implemented Interfaces:
IEvaluationContext

public class SimpleEvaluationContext
extends java.lang.Object
implements IEvaluationContext


Constructor Summary
SimpleEvaluationContext()
           
 
Method Summary
 java.lang.Object getFunctionObject(ICompilationContext.IFunctionContext function)
          Return the owner of the specified function, located into this evaluation context
 java.lang.Object getVariable(java.lang.String name)
          Return the variable linked to the iName parameter which can be located into this evaluation context
 void setFunctionHandler(java.lang.String prefix, java.lang.String name, java.lang.Object obj, java.lang.reflect.Method function)
           
 void setVariable(java.lang.String name, java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleEvaluationContext

public SimpleEvaluationContext()
Method Detail

setVariable

public void setVariable(java.lang.String name,
                        java.lang.Object obj)

setFunctionHandler

public void setFunctionHandler(java.lang.String prefix,
                               java.lang.String name,
                               java.lang.Object obj,
                               java.lang.reflect.Method function)

getVariable

public java.lang.Object getVariable(java.lang.String name)
Description copied from interface: IEvaluationContext
Return the variable linked to the iName parameter which can be located into this evaluation context

Specified by:
getVariable in interface IEvaluationContext
Parameters:
name - The variable name searched into a
Returns:
Return the searched from this

getFunctionObject

public java.lang.Object getFunctionObject(ICompilationContext.IFunctionContext function)
Description copied from interface: IEvaluationContext
Return the owner of the specified function, located into this evaluation context

Specified by:
getFunctionObject in interface IEvaluationContext
Parameters:
function - The of the demanded method
Returns:
Return the searched with the bound function from this

Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.