| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Compiler | m_compiler
The target XPath. |
| private int | |
| private int | |
| pack-priv PrefixResolver | m_namespaceContext
The prefix resolver to map prefixes to namespaces in the XPath. |
| private int | |
| private int | |
| private int[] | m_patternMap
Ignore this, it is going away. |
| private int | m_patternMapSize
Ignore this, it is going away. |
| pack-priv XPathParser | m_processor
The XPath processor object. |
| pack-priv XMLSecurityManager | |
| pack-priv static final int | TARGETEXTRA
This value is added to each element name in the TARGETEXTRA that is a 'target' (right-most top-level element name). |
| Access | Constructor and Description |
|---|---|
| pack-priv | Lexer(Compiler
The owning compiler for this lexer. compiler, PrefixResolver The prefix resolver for mapping qualified name prefixes
to namespace URIs. resolver, XPathParser The parser that is processing strings to opcodes. xpathProcessor, XMLSecurityManager the XML security manager xmlSecMgr)Create a Lexer object. |
| Modifier and Type | Method and Description |
|---|---|
| private final void | |
| pack-priv final int | Returns: An opcode value.The keyword. key)Given a string, return the corresponding keyword token. |
| private int | Returns: the token queue position.The index in the m_patternMap. i)Given a map pos, return the corresponding token queue pos. |
| private void | |
| private int | Returns: -1 always.The XPath name string. pat, int The start of the name string. startSubstring, int The position of the namespace seperator (':'). posOfNSSep, int The end of the name index. posOfScan)When a seperator token is found, see if there's a element name or the like to map. |
| private boolean | Returns: true if this is the start of a pattern.The nesting count for the pattern element. nesting, boolean true if this is the start of a pattern. isStart, boolean true if we have determined that this is an attribute name. isAttrName)Record the current position on the token queue as long as this is a top-level element. |
| private char | |
| private void | recordTokenString(List<String>
a list of strings. targetStrings)Record the current token in the passed vector. |
| private final void | |
| pack-priv void | |
| pack-priv void |
| isLiteral | back to summary |
|---|---|
| private boolean isLiteral | |
| m_compiler | back to summary |
|---|---|
| private Compiler m_compiler The target XPath. | |
| m_grpCount | back to summary |
|---|---|
| private int m_grpCount | |
| m_grpCountLimit | back to summary |
|---|---|
| private int m_grpCountLimit | |
| m_namespaceContext | back to summary |
|---|---|
| pack-priv PrefixResolver m_namespaceContext The prefix resolver to map prefixes to namespaces in the XPath. | |
| m_opCount | back to summary |
|---|---|
| private int m_opCount | |
| m_opCountLimit | back to summary |
|---|---|
| private int m_opCountLimit | |
| m_patternMap | back to summary |
|---|---|
| private int[] m_patternMap Ignore this, it is going away. This holds a map to the m_tokenQueue that tells where the top-level elements are. It is used for pattern matching so the m_tokenQueue can be walked backwards. Each element that is a 'target', (right-most top level element name) has TARGETEXTRA added to it. | |
| m_patternMapSize | back to summary |
|---|---|
| private int m_patternMapSize Ignore this, it is going away. The number of elements that m_patternMap maps; | |
| m_processor | back to summary |
|---|---|
| pack-priv XPathParser m_processor The XPath processor object. | |
| m_xmlSecMgr | back to summary |
|---|---|
| pack-priv XMLSecurityManager m_xmlSecMgr | |
| TARGETEXTRA | back to summary |
|---|---|
| pack-priv static final int TARGETEXTRA This value is added to each element name in the TARGETEXTRA that is a 'target' (right-most top-level element name). | |
| Lexer | back to summary |
|---|---|
| pack-priv Lexer(Compiler compiler, PrefixResolver resolver, XPathParser xpathProcessor, XMLSecurityManager xmlSecMgr) Create a Lexer object.
| |
| addToTokenQueue | back to summary |
|---|---|
| private final void addToTokenQueue(String s) Add a token to the token queue.
| |
| getKeywordToken | back to summary |
|---|---|
| pack-priv final int getKeywordToken(String key) Given a string, return the corresponding keyword token.
| |
| getTokenQueuePosFromMap | back to summary |
|---|---|
| private int getTokenQueuePosFromMap(int i) Given a map pos, return the corresponding token queue pos.
| |
| incrementCount | back to summary |
|---|---|
| private void incrementCount() | |
| mapNSTokens | back to summary |
|---|---|
| private int mapNSTokens(String pat, int startSubstring, int posOfNSSep, int posOfScan) throws TransformerException When a seperator token is found, see if there's a element name or the like to map.
| |
| mapPatternElemPos | back to summary |
|---|---|
| private boolean mapPatternElemPos(int nesting, boolean isStart, boolean isAttrName) Record the current position on the token queue as long as this is a top-level element. Must be called before the next token is added to the m_tokenQueue.
| |
| peekNext | back to summary |
|---|---|
| private char peekNext(String s, int index) Peeks at the next character without advancing the index.
| |
| recordTokenString | back to summary |
|---|---|
| private void recordTokenString(List<String> targetStrings) Record the current token in the passed vector. | |
| resetTokenMark | back to summary |
|---|---|
| private final void resetTokenMark(int mark) Reset token queue mark and m_token to a given position.
| |
| tokenize | back to summary |
|---|---|
| pack-priv void tokenize(String pat) throws TransformerException Walk through the expression and build a token queue, and a map of the top-level elements.
| |
| tokenize | back to summary |
|---|---|
| pack-priv void tokenize(String pat, List<String> targetStrings) throws TransformerException Walk through the expression and build a token queue, and a map of the top-level elements.
| |