org.apache.xpath.compiler
Class Keywords

java.lang.Object
  extended by org.apache.xpath.compiler.Keywords

public class Keywords
extends java.lang.Object

Table of strings to operation code lookups.


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

Field Detail

m_keywords

private static java.util.Hashtable m_keywords
Table of keywords to opcode associations.


m_axisnames

private static java.util.Hashtable m_axisnames
Table of axes names to opcode associations.


m_nodetests

private static java.util.Hashtable m_nodetests
Table of function name to function ID associations.


m_nodetypes

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


FROM_ANCESTORS_STRING

private static final java.lang.String FROM_ANCESTORS_STRING
ancestor axes string.

See Also:
Constant Field Values

FROM_ANCESTORS_OR_SELF_STRING

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

See Also:
Constant Field Values

FROM_ATTRIBUTES_STRING

private static final java.lang.String FROM_ATTRIBUTES_STRING
attribute axes string.

See Also:
Constant Field Values

FROM_CHILDREN_STRING

private static final java.lang.String FROM_CHILDREN_STRING
child axes string.

See Also:
Constant Field Values

FROM_DESCENDANTS_STRING

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

See Also:
Constant Field Values

FROM_DESCENDANTS_OR_SELF_STRING

private static final java.lang.String FROM_DESCENDANTS_OR_SELF_STRING
ancestor axes string.

See Also:
Constant Field Values

FROM_FOLLOWING_STRING

private static final java.lang.String FROM_FOLLOWING_STRING
following axes string.

See Also:
Constant Field Values

FROM_FOLLOWING_SIBLINGS_STRING

private static final java.lang.String FROM_FOLLOWING_SIBLINGS_STRING
following-sibling axes string.

See Also:
Constant Field Values

FROM_PARENT_STRING

private static final java.lang.String FROM_PARENT_STRING
parent axes string.

See Also:
Constant Field Values

FROM_PRECEDING_STRING

private static final java.lang.String FROM_PRECEDING_STRING
preceding axes string.

See Also:
Constant Field Values

FROM_PRECEDING_SIBLINGS_STRING

private static final java.lang.String FROM_PRECEDING_SIBLINGS_STRING
preceding-sibling axes string.

See Also:
Constant Field Values

FROM_SELF_STRING

private static final java.lang.String FROM_SELF_STRING
self axes string.

See Also:
Constant Field Values

FROM_NAMESPACE_STRING

private static final java.lang.String FROM_NAMESPACE_STRING
namespace axes string.

See Also:
Constant Field Values

FROM_SELF_ABBREVIATED_STRING

private static final java.lang.String FROM_SELF_ABBREVIATED_STRING
self axes abreviated string.

See Also:
Constant Field Values

NODETYPE_COMMENT_STRING

private static final java.lang.String NODETYPE_COMMENT_STRING
comment node test string.

See Also:
Constant Field Values

NODETYPE_TEXT_STRING

private static final java.lang.String NODETYPE_TEXT_STRING
text node test string.

See Also:
Constant Field Values

NODETYPE_PI_STRING

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

See Also:
Constant Field Values

NODETYPE_NODE_STRING

private static final java.lang.String NODETYPE_NODE_STRING
Any node test string.

See Also:
Constant Field Values

NODETYPE_ANYELEMENT_STRING

private static final java.lang.String NODETYPE_ANYELEMENT_STRING
Wildcard element string.

See Also:
Constant Field Values

FUNC_CURRENT_STRING

public static final java.lang.String FUNC_CURRENT_STRING
current function string.

See Also:
Constant Field Values

FUNC_LAST_STRING

public static final java.lang.String FUNC_LAST_STRING
last function string.

See Also:
Constant Field Values

FUNC_POSITION_STRING

public static final java.lang.String FUNC_POSITION_STRING
position function string.

See Also:
Constant Field Values

FUNC_COUNT_STRING

public static final java.lang.String FUNC_COUNT_STRING
count function string.

See Also:
Constant Field Values

FUNC_ID_STRING

static final java.lang.String FUNC_ID_STRING
id function string.

See Also:
Constant Field Values

FUNC_KEY_STRING

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

See Also:
Constant Field Values

FUNC_LOCAL_PART_STRING

public static final java.lang.String FUNC_LOCAL_PART_STRING
local-name function string.

See Also:
Constant Field Values

FUNC_NAMESPACE_STRING

public static final java.lang.String FUNC_NAMESPACE_STRING
namespace-uri function string.

See Also:
Constant Field Values

FUNC_NAME_STRING

public static final java.lang.String FUNC_NAME_STRING
name function string.

See Also:
Constant Field Values

FUNC_GENERATE_ID_STRING

public static final java.lang.String FUNC_GENERATE_ID_STRING
generate-id function string (XSLT).

See Also:
Constant Field Values

FUNC_NOT_STRING

public static final java.lang.String FUNC_NOT_STRING
not function string.

See Also:
Constant Field Values

FUNC_TRUE_STRING

public static final java.lang.String FUNC_TRUE_STRING
true function string.

See Also:
Constant Field Values

FUNC_FALSE_STRING

public static final java.lang.String FUNC_FALSE_STRING
false function string.

See Also:
Constant Field Values

FUNC_BOOLEAN_STRING

public static final java.lang.String FUNC_BOOLEAN_STRING
boolean function string.

See Also:
Constant Field Values

FUNC_LANG_STRING

public static final java.lang.String FUNC_LANG_STRING
lang function string.

See Also:
Constant Field Values

FUNC_NUMBER_STRING

public static final java.lang.String FUNC_NUMBER_STRING
number function string.

See Also:
Constant Field Values

FUNC_FLOOR_STRING

public static final java.lang.String FUNC_FLOOR_STRING
floor function string.

See Also:
Constant Field Values

FUNC_CEILING_STRING

public static final java.lang.String FUNC_CEILING_STRING
ceiling function string.

See Also:
Constant Field Values

FUNC_ROUND_STRING

public static final java.lang.String FUNC_ROUND_STRING
round function string.

See Also:
Constant Field Values

FUNC_SUM_STRING

public static final java.lang.String FUNC_SUM_STRING
sum function string.

See Also:
Constant Field Values

FUNC_STRING_STRING

public static final java.lang.String FUNC_STRING_STRING
string function string.

See Also:
Constant Field Values

FUNC_STARTS_WITH_STRING

public static final java.lang.String FUNC_STARTS_WITH_STRING
starts-with function string.

See Also:
Constant Field Values

FUNC_CONTAINS_STRING

public static final java.lang.String FUNC_CONTAINS_STRING
contains function string.

See Also:
Constant Field Values

FUNC_SUBSTRING_BEFORE_STRING

public static final java.lang.String FUNC_SUBSTRING_BEFORE_STRING
substring-before function string.

See Also:
Constant Field Values

FUNC_SUBSTRING_AFTER_STRING

public static final java.lang.String FUNC_SUBSTRING_AFTER_STRING
substring-after function string.

See Also:
Constant Field Values

FUNC_NORMALIZE_SPACE_STRING

public static final java.lang.String FUNC_NORMALIZE_SPACE_STRING
normalize-space function string.

See Also:
Constant Field Values

FUNC_TRANSLATE_STRING

public static final java.lang.String FUNC_TRANSLATE_STRING
translate function string.

See Also:
Constant Field Values

FUNC_CONCAT_STRING

public static final java.lang.String FUNC_CONCAT_STRING
concat function string.

See Also:
Constant Field Values

FUNC_SYSTEM_PROPERTY_STRING

public static final java.lang.String FUNC_SYSTEM_PROPERTY_STRING
system-property function string.

See Also:
Constant Field Values

FUNC_EXT_FUNCTION_AVAILABLE_STRING

public static final java.lang.String FUNC_EXT_FUNCTION_AVAILABLE_STRING
function-available function string (XSLT).

See Also:
Constant Field Values

FUNC_EXT_ELEM_AVAILABLE_STRING

public static final java.lang.String FUNC_EXT_ELEM_AVAILABLE_STRING
element-available function string (XSLT).

See Also:
Constant Field Values

FUNC_SUBSTRING_STRING

public static final java.lang.String FUNC_SUBSTRING_STRING
substring function string.

See Also:
Constant Field Values

FUNC_STRING_LENGTH_STRING

public static final java.lang.String FUNC_STRING_LENGTH_STRING
string-length function string.

See Also:
Constant Field Values

FUNC_UNPARSED_ENTITY_URI_STRING

public static final java.lang.String FUNC_UNPARSED_ENTITY_URI_STRING
unparsed-entity-uri function string (XSLT).

See Also:
Constant Field Values

FUNC_DOCLOCATION_STRING

public static final java.lang.String FUNC_DOCLOCATION_STRING
current function string (Proprietary).

See Also:
Constant Field Values
Constructor Detail

Keywords

public Keywords()
Method Detail

getAxisName

static java.lang.Object getAxisName(java.lang.String key)

lookupNodeTest

static java.lang.Object lookupNodeTest(java.lang.String key)

getKeyWord

static java.lang.Object getKeyWord(java.lang.String key)

getNodeType

static java.lang.Object getNodeType(java.lang.String key)