org.apache.xpath.compiler
Class Keywords

java.lang.Object
  extended byorg.apache.xpath.compiler.Keywords

public class Keywords
extends Object

Table of strings to operation code lookups.


Field Summary
private static String FROM_ANCESTORS_OR_SELF_STRING
          ancestor-or-self axes string.
private static String FROM_ANCESTORS_STRING
          ancestor axes string.
private static String FROM_ATTRIBUTES_STRING
          attribute axes string.
private static String FROM_CHILDREN_STRING
          child axes string.
private static String FROM_DESCENDANTS_OR_SELF_STRING
          ancestor axes string.
private static String FROM_DESCENDANTS_STRING
          descendant-or-self axes string.
private static String FROM_FOLLOWING_SIBLINGS_STRING
          following-sibling axes string.
private static String FROM_FOLLOWING_STRING
          following axes string.
private static String FROM_NAMESPACE_STRING
          namespace axes string.
private static String FROM_PARENT_STRING
          parent axes string.
private static String FROM_PRECEDING_SIBLINGS_STRING
          preceding-sibling axes string.
private static String FROM_PRECEDING_STRING
          preceding axes string.
private static String FROM_SELF_ABBREVIATED_STRING
          self axes abreviated string.
private static String FROM_SELF_STRING
          self axes string.
private static String FUNC_BOOLEAN_STRING
          boolean function string.
private static String FUNC_CEILING_STRING
          ceiling function string.
private static String FUNC_CONCAT_STRING
          concat function string.
private static String FUNC_CONTAINS_STRING
          contains function string.
private static String FUNC_COUNT_STRING
          count function string.
private static String FUNC_CURRENT_STRING
          current function string.
private static String FUNC_DOCLOCATION_STRING
          current function string (Proprietary).
private static String FUNC_EXT_ELEM_AVAILABLE_STRING
          element-available function string (XSLT).
private static String FUNC_EXT_FUNCTION_AVAILABLE_STRING
          function-available function string (XSLT).
private static String FUNC_FALSE_STRING
          false function string.
private static String FUNC_FLOOR_STRING
          floor function string.
private static String FUNC_GENERATE_ID_STRING
          generate-id function string (XSLT).
(package private) static String FUNC_ID_STRING
          id function string.
static String FUNC_KEY_STRING
          key function string (XSLT).
private static String FUNC_LANG_STRING
          lang function string.
private static String FUNC_LAST_STRING
          last function string.
private static String FUNC_LOCAL_PART_STRING
          local-name function string.
private static String FUNC_NAME_STRING
          name function string.
private static String FUNC_NAMESPACE_STRING
          namespace-uri function string.
private static String FUNC_NORMALIZE_SPACE_STRING
          normalize-space function string.
private static String FUNC_NOT_STRING
          not function string.
private static String FUNC_NUMBER_STRING
          number function string.
private static String FUNC_POSITION_STRING
          position function string.
private static String FUNC_ROUND_STRING
          round function string.
private static String FUNC_STARTS_WITH_STRING
          starts-with function string.
private static String FUNC_STRING_LENGTH_STRING
          string-length function string.
private static String FUNC_STRING_STRING
          string function string.
private static String FUNC_SUBSTRING_AFTER_STRING
          substring-after function string.
private static String FUNC_SUBSTRING_BEFORE_STRING
          substring-before function string.
private static String FUNC_SUBSTRING_STRING
          substring function string.
private static String FUNC_SUM_STRING
          sum function string.
private static String FUNC_SYSTEM_PROPERTY_STRING
          system-property function string.
private static String FUNC_TRANSLATE_STRING
          translate function string.
private static String FUNC_TRUE_STRING
          true function string.
private static String FUNC_UNPARSED_ENTITY_URI_STRING
          unparsed-entity-uri function string (XSLT).
(package private) static Hashtable m_axisnames
          Table of axes names to opcode associations.
(package private) static Hashtable m_functions
          Table of function name to function ID associations.
(package private) static Hashtable m_keywords
          Table of keywords to opcode associations.
(package private) static Hashtable m_nodetypes
          Table of node type strings to opcode associations.
private static String NODETYPE_ANYELEMENT_STRING
          Wildcard element string.
private static String NODETYPE_COMMENT_STRING
          comment node test string.
private static String NODETYPE_NODE_STRING
          Any node test string.
private static String NODETYPE_PI_STRING
          processing-instruction node test string.
private static String NODETYPE_TEXT_STRING
          text node test string.
 
Constructor Summary
Keywords()
           
 
Method Summary
static boolean functionAvailable(String methName)
          Tell if a built-in, non-namespaced function is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_keywords

static Hashtable m_keywords
Table of keywords to opcode associations.


m_axisnames

static Hashtable m_axisnames
Table of axes names to opcode associations.


m_functions

static Hashtable m_functions
Table of function name to function ID associations.


m_nodetypes

static Hashtable m_nodetypes
Table of node type strings to opcode associations.


FROM_ANCESTORS_STRING

private static final String FROM_ANCESTORS_STRING
ancestor axes string.

See Also:
Constant Field Values

FROM_ANCESTORS_OR_SELF_STRING

private static final String FROM_ANCESTORS_OR_SELF_STRING
ancestor-or-self axes string.

See Also:
Constant Field Values

FROM_ATTRIBUTES_STRING

private static final String FROM_ATTRIBUTES_STRING
attribute axes string.

See Also:
Constant Field Values

FROM_CHILDREN_STRING

private static final String FROM_CHILDREN_STRING
child axes string.

See Also:
Constant Field Values

FROM_DESCENDANTS_STRING

private static final String FROM_DESCENDANTS_STRING
descendant-or-self axes string.

See Also:
Constant Field Values

FROM_DESCENDANTS_OR_SELF_STRING

private static final String FROM_DESCENDANTS_OR_SELF_STRING
ancestor axes string.

See Also:
Constant Field Values

FROM_FOLLOWING_STRING

private static final String FROM_FOLLOWING_STRING
following axes string.

See Also:
Constant Field Values

FROM_FOLLOWING_SIBLINGS_STRING

private static final String FROM_FOLLOWING_SIBLINGS_STRING
following-sibling axes string.

See Also:
Constant Field Values

FROM_PARENT_STRING

private static final String FROM_PARENT_STRING
parent axes string.

See Also:
Constant Field Values

FROM_PRECEDING_STRING

private static final String FROM_PRECEDING_STRING
preceding axes string.

See Also:
Constant Field Values

FROM_PRECEDING_SIBLINGS_STRING

private static final String FROM_PRECEDING_SIBLINGS_STRING
preceding-sibling axes string.

See Also:
Constant Field Values

FROM_SELF_STRING

private static final String FROM_SELF_STRING
self axes string.

See Also:
Constant Field Values

FROM_NAMESPACE_STRING

private static final String FROM_NAMESPACE_STRING
namespace axes string.

See Also:
Constant Field Values

FROM_SELF_ABBREVIATED_STRING

private static final String FROM_SELF_ABBREVIATED_STRING
self axes abreviated string.

See Also:
Constant Field Values

NODETYPE_COMMENT_STRING

private static final String NODETYPE_COMMENT_STRING
comment node test string.

See Also:
Constant Field Values

NODETYPE_TEXT_STRING

private static final String NODETYPE_TEXT_STRING
text node test string.

See Also:
Constant Field Values

NODETYPE_PI_STRING

private static final String NODETYPE_PI_STRING
processing-instruction node test string.

See Also:
Constant Field Values

NODETYPE_NODE_STRING

private static final String NODETYPE_NODE_STRING
Any node test string.

See Also:
Constant Field Values

NODETYPE_ANYELEMENT_STRING

private static final String NODETYPE_ANYELEMENT_STRING
Wildcard element string.

See Also:
Constant Field Values

FUNC_CURRENT_STRING

private static final String FUNC_CURRENT_STRING
current function string.

See Also:
Constant Field Values

FUNC_LAST_STRING

private static final String FUNC_LAST_STRING
last function string.

See Also:
Constant Field Values

FUNC_POSITION_STRING

private static final String FUNC_POSITION_STRING
position function string.

See Also:
Constant Field Values

FUNC_COUNT_STRING

private static final String FUNC_COUNT_STRING
count function string.

See Also:
Constant Field Values

FUNC_ID_STRING

static final String FUNC_ID_STRING
id function string.

See Also:
Constant Field Values

FUNC_KEY_STRING

public static final String FUNC_KEY_STRING
key function string (XSLT).

See Also:
Constant Field Values

FUNC_LOCAL_PART_STRING

private static final String FUNC_LOCAL_PART_STRING
local-name function string.

See Also:
Constant Field Values

FUNC_NAMESPACE_STRING

private static final String FUNC_NAMESPACE_STRING
namespace-uri function string.

See Also:
Constant Field Values

FUNC_NAME_STRING

private static final String FUNC_NAME_STRING
name function string.

See Also:
Constant Field Values

FUNC_GENERATE_ID_STRING

private static final String FUNC_GENERATE_ID_STRING
generate-id function string (XSLT).

See Also:
Constant Field Values

FUNC_NOT_STRING

private static final String FUNC_NOT_STRING
not function string.

See Also:
Constant Field Values

FUNC_TRUE_STRING

private static final String FUNC_TRUE_STRING
true function string.

See Also:
Constant Field Values

FUNC_FALSE_STRING

private static final String FUNC_FALSE_STRING
false function string.

See Also:
Constant Field Values

FUNC_BOOLEAN_STRING

private static final String FUNC_BOOLEAN_STRING
boolean function string.

See Also:
Constant Field Values

FUNC_LANG_STRING

private static final String FUNC_LANG_STRING
lang function string.

See Also:
Constant Field Values

FUNC_NUMBER_STRING

private static final String FUNC_NUMBER_STRING
number function string.

See Also:
Constant Field Values

FUNC_FLOOR_STRING

private static final String FUNC_FLOOR_STRING
floor function string.

See Also:
Constant Field Values

FUNC_CEILING_STRING

private static final String FUNC_CEILING_STRING
ceiling function string.

See Also:
Constant Field Values

FUNC_ROUND_STRING

private static final String FUNC_ROUND_STRING
round function string.

See Also:
Constant Field Values

FUNC_SUM_STRING

private static final String FUNC_SUM_STRING
sum function string.

See Also:
Constant Field Values

FUNC_STRING_STRING

private static final String FUNC_STRING_STRING
string function string.

See Also:
Constant Field Values

FUNC_STARTS_WITH_STRING

private static final String FUNC_STARTS_WITH_STRING
starts-with function string.

See Also:
Constant Field Values

FUNC_CONTAINS_STRING

private static final String FUNC_CONTAINS_STRING
contains function string.

See Also:
Constant Field Values

FUNC_SUBSTRING_BEFORE_STRING

private static final String FUNC_SUBSTRING_BEFORE_STRING
substring-before function string.

See Also:
Constant Field Values

FUNC_SUBSTRING_AFTER_STRING

private static final String FUNC_SUBSTRING_AFTER_STRING
substring-after function string.

See Also:
Constant Field Values

FUNC_NORMALIZE_SPACE_STRING

private static final String FUNC_NORMALIZE_SPACE_STRING
normalize-space function string.

See Also:
Constant Field Values

FUNC_TRANSLATE_STRING

private static final String FUNC_TRANSLATE_STRING
translate function string.

See Also:
Constant Field Values

FUNC_CONCAT_STRING

private static final String FUNC_CONCAT_STRING
concat function string.

See Also:
Constant Field Values

FUNC_SYSTEM_PROPERTY_STRING

private static final String FUNC_SYSTEM_PROPERTY_STRING
system-property function string.

See Also:
Constant Field Values

FUNC_EXT_FUNCTION_AVAILABLE_STRING

private static final String FUNC_EXT_FUNCTION_AVAILABLE_STRING
function-available function string (XSLT).

See Also:
Constant Field Values

FUNC_EXT_ELEM_AVAILABLE_STRING

private static final String FUNC_EXT_ELEM_AVAILABLE_STRING
element-available function string (XSLT).

See Also:
Constant Field Values

FUNC_SUBSTRING_STRING

private static final String FUNC_SUBSTRING_STRING
substring function string.

See Also:
Constant Field Values

FUNC_STRING_LENGTH_STRING

private static final String FUNC_STRING_LENGTH_STRING
string-length function string.

See Also:
Constant Field Values

FUNC_UNPARSED_ENTITY_URI_STRING

private static final String FUNC_UNPARSED_ENTITY_URI_STRING
unparsed-entity-uri function string (XSLT).

See Also:
Constant Field Values

FUNC_DOCLOCATION_STRING

private static final String FUNC_DOCLOCATION_STRING
current function string (Proprietary).

See Also:
Constant Field Values
Constructor Detail

Keywords

public Keywords()
Method Detail

functionAvailable

public static 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.