com.japisoft.xpath.function.basic
Class FunctionLib

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--com.japisoft.xpath.function.basic.FunctionLib
All Implemented Interfaces:
java.lang.Cloneable, Lib, java.util.Map, java.io.Serializable

public final class FunctionLib
extends java.util.Hashtable
implements Lib

Library of XPath function. Use the put method for adding a new function of replacing existing one.

Version:
1.1
Author:
(c) 2003 JAPISOFT
See Also:
Serialized Form

Constructor Summary
FunctionLib()
           
 
Method Summary
 java.lang.Object eval(java.lang.String function, XPathContext context, FastVector arg)
          Eval the function by its name.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionLib

public FunctionLib()
Method Detail

eval

public java.lang.Object eval(java.lang.String function,
                             XPathContext context,
                             FastVector arg)
Eval the function by its name. If the function is unknown a runtime exception is thrown.

Specified by:
eval in interface Lib
Parameters:
function - a String value
context - a XPathContext value
arg - a Vector value
Returns:
an Object value