| java.lang.Object org.apache.xpath.compiler.Lexer
Lexer | class Lexer (Code) | | This class is in charge of lexical processing of the XPath
expression into tokens.
|
Method Summary | |
final int | getKeywordToken(String key) Given a string, return the corresponding keyword token.
Parameters: key - The keyword. | void | tokenize(String pat) Walk through the expression and build a token queue, and a map of the top-level
elements. | void | tokenize(String pat, Vector targetStrings) Walk through the expression and build a token queue, and a map of the top-level
elements. |
TARGETEXTRA | final static int TARGETEXTRA(Code) | | This value is added to each element name in the TARGETEXTRA
that is a 'target' (right-most top-level element name).
|
m_namespaceContext | PrefixResolver m_namespaceContext(Code) | | The prefix resolver to map prefixes to namespaces in the XPath.
|
Lexer | Lexer(Compiler compiler, PrefixResolver resolver, XPathParser xpathProcessor)(Code) | | Create a Lexer object.
Parameters: compiler - The owning compiler for this lexer. Parameters: resolver - The prefix resolver for mapping qualified name prefixes to namespace URIs. Parameters: xpathProcessor - The parser that is processing strings to opcodes. |
getKeywordToken | final int getKeywordToken(String key)(Code) | | Given a string, return the corresponding keyword token.
Parameters: key - The keyword. An opcode value. |
|
|