org.basex.query.xpath.func
Class XPathContext

java.lang.Object
  extended by org.basex.query.xpath.func.XPathContext

public final class XPathContext
extends java.lang.Object

Global expression context.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Tim Petrowsky

Method Summary
static XPathContext get()
          Returns single instance of this class.
 Func getFunction(byte[] name, Expr[] args)
          Evaluates the specified function.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static XPathContext get()
Returns single instance of this class.

Returns:
class instance

getFunction

public Func getFunction(byte[] name,
                        Expr[] args)
                 throws QueryException
Evaluates the specified function.

Parameters:
name - name of the function
args - optional arguments
Returns:
resulting XPathValue
Throws:
QueryException - query exception