org.apache.xpath.compiler

Class FunctionTable

public class FunctionTable extends Object

The function table for XPath.
Field Summary
static intFUNC_BOOLEAN
The 'boolean()' id.
static intFUNC_CEILING
The 'ceiling()' id.
static intFUNC_CONCAT
The 'concat()' id.
static intFUNC_CONTAINS
The 'contains()' id.
static intFUNC_COUNT
The 'count()' id.
static intFUNC_CURRENT
The 'current()' id.
static intFUNC_DOCLOCATION
The 'document-location()' id (Proprietary).
static intFUNC_EXT_ELEM_AVAILABLE
The 'element-available()' id (XSLT).
static intFUNC_EXT_FUNCTION_AVAILABLE
The 'function-available()' id (XSLT).
static intFUNC_FALSE
The 'false()' id.
static intFUNC_FLOOR
The 'floor()' id.
static intFUNC_GENERATE_ID
The 'generate-id()' id.
static intFUNC_ID
The 'id()' id.
static intFUNC_KEY
The 'key()' id (XSLT).
static intFUNC_LANG
The 'lang()' id.
static intFUNC_LAST
The 'last()' id.
static intFUNC_LOCAL_PART
The 'local-name()' id.
static intFUNC_NAMESPACE
The 'namespace-uri()' id.
static intFUNC_NORMALIZE_SPACE
The 'normalize-space()' id.
static intFUNC_NOT
The 'not()' id.
static intFUNC_NUMBER
The 'number()' id.
static intFUNC_POSITION
The 'position()' id.
static intFUNC_QNAME
The 'name()' id.
static intFUNC_ROUND
The 'round()' id.
static intFUNC_STARTS_WITH
The 'starts-with()' id.
static intFUNC_STRING
The 'string()' id.
static intFUNC_STRING_LENGTH
The 'string-length()' id.
static intFUNC_SUBSTRING
The 'substring()' id.
static intFUNC_SUBSTRING_AFTER
The 'substring-after()' id.
static intFUNC_SUBSTRING_BEFORE
The 'substring-before()' id.
static intFUNC_SUM
The 'sum()' id.
static intFUNC_SYSTEM_PROPERTY
The 'system-property()' id.
static intFUNC_TRANSLATE
The 'translate()' id.
static intFUNC_TRUE
The 'true()' id.
static intFUNC_UNPARSED_ENTITY_URI
The 'unparsed-entity-uri()' id (XSLT).
Constructor Summary
FunctionTable()
Method Summary
booleanfunctionAvailable(String methName)
Tell if a built-in, non-namespaced function is available.
intinstallFunction(String name, Class func)
Install a built-in function.

Field Detail

FUNC_BOOLEAN

public static final int FUNC_BOOLEAN
The 'boolean()' id.

FUNC_CEILING

public static final int FUNC_CEILING
The 'ceiling()' id.

FUNC_CONCAT

public static final int FUNC_CONCAT
The 'concat()' id.

FUNC_CONTAINS

public static final int FUNC_CONTAINS
The 'contains()' id.

FUNC_COUNT

public static final int FUNC_COUNT
The 'count()' id.

FUNC_CURRENT

public static final int FUNC_CURRENT
The 'current()' id.

FUNC_DOCLOCATION

public static final int FUNC_DOCLOCATION
The 'document-location()' id (Proprietary).

FUNC_EXT_ELEM_AVAILABLE

public static final int FUNC_EXT_ELEM_AVAILABLE
The 'element-available()' id (XSLT).

FUNC_EXT_FUNCTION_AVAILABLE

public static final int FUNC_EXT_FUNCTION_AVAILABLE
The 'function-available()' id (XSLT).

FUNC_FALSE

public static final int FUNC_FALSE
The 'false()' id.

FUNC_FLOOR

public static final int FUNC_FLOOR
The 'floor()' id.

FUNC_GENERATE_ID

public static final int FUNC_GENERATE_ID
The 'generate-id()' id.

FUNC_ID

public static final int FUNC_ID
The 'id()' id.

FUNC_KEY

public static final int FUNC_KEY
The 'key()' id (XSLT).

FUNC_LANG

public static final int FUNC_LANG
The 'lang()' id.

FUNC_LAST

public static final int FUNC_LAST
The 'last()' id.

FUNC_LOCAL_PART

public static final int FUNC_LOCAL_PART
The 'local-name()' id.

FUNC_NAMESPACE

public static final int FUNC_NAMESPACE
The 'namespace-uri()' id.

FUNC_NORMALIZE_SPACE

public static final int FUNC_NORMALIZE_SPACE
The 'normalize-space()' id.

FUNC_NOT

public static final int FUNC_NOT
The 'not()' id.

FUNC_NUMBER

public static final int FUNC_NUMBER
The 'number()' id.

FUNC_POSITION

public static final int FUNC_POSITION
The 'position()' id.

FUNC_QNAME

public static final int FUNC_QNAME
The 'name()' id.

FUNC_ROUND

public static final int FUNC_ROUND
The 'round()' id.

FUNC_STARTS_WITH

public static final int FUNC_STARTS_WITH
The 'starts-with()' id.

FUNC_STRING

public static final int FUNC_STRING
The 'string()' id.

FUNC_STRING_LENGTH

public static final int FUNC_STRING_LENGTH
The 'string-length()' id.

FUNC_SUBSTRING

public static final int FUNC_SUBSTRING
The 'substring()' id.

FUNC_SUBSTRING_AFTER

public static final int FUNC_SUBSTRING_AFTER
The 'substring-after()' id.

FUNC_SUBSTRING_BEFORE

public static final int FUNC_SUBSTRING_BEFORE
The 'substring-before()' id.

FUNC_SUM

public static final int FUNC_SUM
The 'sum()' id.

FUNC_SYSTEM_PROPERTY

public static final int FUNC_SYSTEM_PROPERTY
The 'system-property()' id.

FUNC_TRANSLATE

public static final int FUNC_TRANSLATE
The 'translate()' id.

FUNC_TRUE

public static final int FUNC_TRUE
The 'true()' id.

FUNC_UNPARSED_ENTITY_URI

public static final int FUNC_UNPARSED_ENTITY_URI
The 'unparsed-entity-uri()' id (XSLT).

Constructor Detail

FunctionTable

public FunctionTable()

Method Detail

functionAvailable

public boolean functionAvailable(String methName)
Tell if a built-in, non-namespaced function is available.

Parameters: methName The local name of the function.

Returns: True if the function can be executed.

installFunction

public int installFunction(String name, Class func)
Install a built-in function.

Parameters: name The unqualified name of the function, must not be null func A Implementation of an XPath Function object.

Returns: the position of the function in the internal index.

Copyright © 2005 Apache XML Project. All Rights Reserved.