org.boris.xlloop
Class FunctionMap

java.lang.Object
  extended by org.boris.xlloop.FunctionMap
All Implemented Interfaces:
IFunctionHandler
Direct Known Subclasses:
DelegateFunctionHandler

public class FunctionMap
extends java.lang.Object
implements IFunctionHandler


Constructor Summary
FunctionMap()
           
 
Method Summary
 void add(java.lang.String name, IFunction f)
           
 void clear()
           
 XLoper execute(IFunctionContext context, java.lang.String name, XLoper[] args)
           
 boolean hasFunction(java.lang.String name)
           
 void remove(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionMap

public FunctionMap()
Method Detail

add

public void add(java.lang.String name,
                IFunction f)

remove

public void remove(java.lang.String name)

clear

public void clear()

execute

public XLoper execute(IFunctionContext context,
                      java.lang.String name,
                      XLoper[] args)
               throws RequestException
Specified by:
execute in interface IFunctionHandler
Throws:
RequestException

hasFunction

public boolean hasFunction(java.lang.String name)
Specified by:
hasFunction in interface IFunctionHandler