Package org.htmlunit.xpath.compiler
Class Keywords
- java.lang.Object
-
- org.htmlunit.xpath.compiler.Keywords
-
public class Keywords extends java.lang.ObjectTable of strings to operation code lookups.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringFROM_ANCESTORS_OR_SELF_STRINGancestor-or-self axes string.private static java.lang.StringFROM_ANCESTORS_STRINGancestor axes string.private static java.lang.StringFROM_ATTRIBUTES_STRINGattribute axes string.private static java.lang.StringFROM_CHILDREN_STRINGchild axes string.private static java.lang.StringFROM_DESCENDANTS_OR_SELF_STRINGancestor axes string.private static java.lang.StringFROM_DESCENDANTS_STRINGdescendant-or-self axes string.private static java.lang.StringFROM_FOLLOWING_SIBLINGS_STRINGfollowing-sibling axes string.private static java.lang.StringFROM_FOLLOWING_STRINGfollowing axes string.private static java.lang.StringFROM_NAMESPACE_STRINGnamespace axes string.private static java.lang.StringFROM_PARENT_STRINGparent axes string.private static java.lang.StringFROM_PRECEDING_SIBLINGS_STRINGpreceding-sibling axes string.private static java.lang.StringFROM_PRECEDING_STRINGpreceding axes string.private static java.lang.StringFROM_SELF_ABBREVIATED_STRINGself axes abreviated string.private static java.lang.StringFROM_SELF_STRINGself axes string.static java.lang.StringFUNC_BOOLEAN_STRINGboolean function string.static java.lang.StringFUNC_CEILING_STRINGceiling function string.static java.lang.StringFUNC_CONCAT_STRINGconcat function string.static java.lang.StringFUNC_CONTAINS_STRINGcontains function string.static java.lang.StringFUNC_COUNT_STRINGcount function string.static java.lang.StringFUNC_CURRENT_STRINGcurrent function string.static java.lang.StringFUNC_FALSE_STRINGfalse function string.static java.lang.StringFUNC_FLOOR_STRINGfloor function string.(package private) static java.lang.StringFUNC_ID_STRINGid function string.static java.lang.StringFUNC_LANG_STRINGlang function string.static java.lang.StringFUNC_LAST_STRINGlast function string.static java.lang.StringFUNC_LOCAL_PART_STRINGlocal-name function string.static java.lang.StringFUNC_NAME_STRINGname function string.static java.lang.StringFUNC_NAMESPACE_STRINGnamespace-uri function string.static java.lang.StringFUNC_NORMALIZE_SPACE_STRINGnormalize-space function string.static java.lang.StringFUNC_NOT_STRINGnot function string.static java.lang.StringFUNC_NUMBER_STRINGnumber function string.static java.lang.StringFUNC_POSITION_STRINGposition function string.static java.lang.StringFUNC_ROUND_STRINGround function string.static java.lang.StringFUNC_STARTS_WITH_STRINGstarts-with function string.static java.lang.StringFUNC_STRING_LENGTH_STRINGstring-length function string.static java.lang.StringFUNC_STRING_STRINGstring function string.static java.lang.StringFUNC_SUBSTRING_AFTER_STRINGsubstring-after function string.static java.lang.StringFUNC_SUBSTRING_BEFORE_STRINGsubstring-before function string.static java.lang.StringFUNC_SUBSTRING_STRINGsubstring function string.static java.lang.StringFUNC_SUM_STRINGsum function string.static java.lang.StringFUNC_TRANSLATE_STRINGtranslate function string.static java.lang.StringFUNC_TRUE_STRINGtrue function string.private static java.util.Hashtable<java.lang.String,java.lang.Integer>m_axisnamesTable of axes names to opcode associations.private static java.util.Hashtable<java.lang.String,java.lang.Integer>m_keywordsTable of keywords to opcode associations.private static java.util.Hashtable<java.lang.String,java.lang.Integer>m_nodetestsTable of function name to function ID associations.private static java.util.Hashtable<java.lang.String,java.lang.Integer>m_nodetypesTable of node type strings to opcode associations.private static java.lang.StringNODETYPE_ANYELEMENT_STRINGWildcard element string.private static java.lang.StringNODETYPE_COMMENT_STRINGcomment node test string.private static java.lang.StringNODETYPE_NODE_STRINGAny node test string.private static java.lang.StringNODETYPE_PI_STRINGprocessing-instruction node test string.private static java.lang.StringNODETYPE_TEXT_STRINGtext node test string.
-
Constructor Summary
Constructors Constructor Description Keywords()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.ObjectgetAxisName(java.lang.String key)(package private) static java.lang.ObjectgetKeyWord(java.lang.String key)(package private) static java.lang.ObjectgetNodeType(java.lang.String key)(package private) static java.lang.ObjectlookupNodeTest(java.lang.String key)
-
-
-
Field Detail
-
m_keywords
private static final java.util.Hashtable<java.lang.String,java.lang.Integer> m_keywords
Table of keywords to opcode associations.
-
m_axisnames
private static final java.util.Hashtable<java.lang.String,java.lang.Integer> m_axisnames
Table of axes names to opcode associations.
-
m_nodetests
private static final java.util.Hashtable<java.lang.String,java.lang.Integer> m_nodetests
Table of function name to function ID associations.
-
m_nodetypes
private static final java.util.Hashtable<java.lang.String,java.lang.Integer> 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_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_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_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
-
-
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)
-
-