org.basex.query.xquery.func
Class FNIndex

java.lang.Object
  extended by org.basex.util.Set
      extended by org.basex.query.xquery.func.FNIndex

public final class FNIndex
extends Set

Global expression context.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.util.Set
size
 
Method Summary
 void error(byte[] name)
          Finds similar function names for throwing an error message.
static FNIndex get()
          Gets the function instance.
 Fun get(byte[] name, byte[] uri, Expr[] args)
          Returns the specified function.
 
Methods inherited from class org.basex.util.Set
add, delete, id, key, keys, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static FNIndex get()
Gets the function instance.

Returns:
instance

get

public Fun get(byte[] name,
               byte[] uri,
               Expr[] args)
        throws XQException
Returns the specified function.

Parameters:
name - function name
uri - function uri
args - optional arguments
Returns:
function instance
Throws:
XQException - evaluation exception

error

public void error(byte[] name)
           throws XQException
Finds similar function names for throwing an error message.

Parameters:
name - function name
Throws:
XQException - evaluation exception