org.basex.query.func
Class FNIndex

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

public final class FNIndex
extends TokenSet

Global expression context.

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

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.TokenSet
add, delete, id, key, keys, read, size, write
 
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 QueryException
Returns the specified function.

Parameters:
name - function name
uri - function uri
args - optional arguments
Returns:
function instance
Throws:
QueryException - query exception

error

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

Parameters:
name - function name
Throws:
QueryException - query exception