FileDocCategorySizeDatePackage
Keywords.javaAPI DocJava SE 6 API9958Tue Jun 10 00:23:14 BST 2008com.sun.org.apache.xpath.internal.compiler

Keywords

public class Keywords extends Object
Table of strings to operation code lookups.
xsl.usage
internal

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


  
  
    m_axisnames.put(FROM_ANCESTORS_STRING,
                    new Integer(OpCodes.FROM_ANCESTORS));
    m_axisnames.put(FROM_ANCESTORS_OR_SELF_STRING,
                    new Integer(OpCodes.FROM_ANCESTORS_OR_SELF));
    m_axisnames.put(FROM_ATTRIBUTES_STRING,
                    new Integer(OpCodes.FROM_ATTRIBUTES));
    m_axisnames.put(FROM_CHILDREN_STRING,
                    new Integer(OpCodes.FROM_CHILDREN));
    m_axisnames.put(FROM_DESCENDANTS_STRING,
                    new Integer(OpCodes.FROM_DESCENDANTS));
    m_axisnames.put(FROM_DESCENDANTS_OR_SELF_STRING,
                    new Integer(OpCodes.FROM_DESCENDANTS_OR_SELF));
    m_axisnames.put(FROM_FOLLOWING_STRING,
                    new Integer(OpCodes.FROM_FOLLOWING));
    m_axisnames.put(FROM_FOLLOWING_SIBLINGS_STRING,
                    new Integer(OpCodes.FROM_FOLLOWING_SIBLINGS));
    m_axisnames.put(FROM_PARENT_STRING,
                    new Integer(OpCodes.FROM_PARENT));
    m_axisnames.put(FROM_PRECEDING_STRING,
                    new Integer(OpCodes.FROM_PRECEDING));
    m_axisnames.put(FROM_PRECEDING_SIBLINGS_STRING,
                    new Integer(OpCodes.FROM_PRECEDING_SIBLINGS));
    m_axisnames.put(FROM_SELF_STRING,
                    new Integer(OpCodes.FROM_SELF));
    m_axisnames.put(FROM_NAMESPACE_STRING,
                    new Integer(OpCodes.FROM_NAMESPACE));
    m_nodetypes.put(NODETYPE_COMMENT_STRING,
                    new Integer(OpCodes.NODETYPE_COMMENT));
    m_nodetypes.put(NODETYPE_TEXT_STRING,
                    new Integer(OpCodes.NODETYPE_TEXT));
    m_nodetypes.put(NODETYPE_PI_STRING,
                    new Integer(OpCodes.NODETYPE_PI));
    m_nodetypes.put(NODETYPE_NODE_STRING,
                    new Integer(OpCodes.NODETYPE_NODE));
    m_nodetypes.put(NODETYPE_ANYELEMENT_STRING,
                    new Integer(OpCodes.NODETYPE_ANYELEMENT));
    m_keywords.put(FROM_SELF_ABBREVIATED_STRING,
                   new Integer(OpCodes.FROM_SELF));
    m_keywords.put(FUNC_ID_STRING,
                   new Integer(FunctionTable.FUNC_ID));
    m_keywords.put(FUNC_KEY_STRING,
                   new Integer(FunctionTable.FUNC_KEY));

    m_nodetests.put(NODETYPE_COMMENT_STRING,
                    new Integer(OpCodes.NODETYPE_COMMENT));
    m_nodetests.put(NODETYPE_TEXT_STRING,
                    new Integer(OpCodes.NODETYPE_TEXT));
    m_nodetests.put(NODETYPE_PI_STRING,
                    new Integer(OpCodes.NODETYPE_PI));
    m_nodetests.put(NODETYPE_NODE_STRING,
                    new Integer(OpCodes.NODETYPE_NODE));
  
          return m_axisnames.get(key);
  
static java.lang.ObjectgetKeyWord(java.lang.String key)

          return m_keywords.get(key);
  
static java.lang.ObjectgetNodeType(java.lang.String key)

          return m_nodetypes.get(key);
  
static java.lang.ObjectlookupNodeTest(java.lang.String key)

          return m_nodetests.get(key);