org.moremotion.evaluator
Class MyFunc

java.lang.Object
  extended by org.moremotion.evaluator.MyFunc
All Implemented Interfaces:
MScriptFunction

public class MyFunc
extends java.lang.Object
implements MScriptFunction


Constructor Summary
MyFunc()
           
 
Method Summary
 java.lang.Object execute(Expression[] params, MScriptFunctionContext msfc)
          Executes the algorithm of the custom MScript function and returns the result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyFunc

public MyFunc()
Method Detail

execute

public java.lang.Object execute(Expression[] params,
                                MScriptFunctionContext msfc)
                         throws MScriptFunctionException
Description copied from interface: MScriptFunction
Executes the algorithm of the custom MScript function and returns the result.

Specified by:
execute in interface MScriptFunction
Parameters:
params - The function parameters as Expression object array.
msfc - MScriptFunctionContext object
Returns:
The result object. The expected objects are String, Double and Boolean.
Throws:
MScriptFunctionException - when something goes wrong with the execution of the function.


Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.