|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xalan.xpath.XPath
The XPath class represents the semantic parse tree of the XPath pattern. It is the representation of the grammar which filters out the choice for replacement order of the production rules. In order to conserve memory and reduce object creation, the tree is represented as an array of integers: [op code][length][...] where strings are represented within the array as indexes into the token tree.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Field Summary | |
static int |
ELEMWILDCARD
[ELEMWILDCARD] Means ELEMWILDCARD ("*"), used instead of string index in some places. |
static int |
EMPTY
[EMPTY] Empty slot to indicate NULL. |
static int |
ENDOP
[ENDOP] Some operators may like to have a terminator. |
static int |
FROM_ANCESTORS
[FROM_stepType] [length, including predicates] [length of just the step, without the predicates] {node test} {predicates}? returns: XBoolean |
static int |
FROM_ANCESTORS_OR_SELF
|
static int |
FROM_ATTRIBUTES
|
static int |
FROM_CHILDREN
|
static int |
FROM_DESCENDANTS
|
static int |
FROM_DESCENDANTS_OR_SELF
|
static int |
FROM_FOLLOWING
|
static int |
FROM_FOLLOWING_SIBLINGS
|
static int |
FROM_NAMESPACE
|
static int |
FROM_PARENT
|
static int |
FROM_PRECEDING
|
static int |
FROM_PRECEDING_SIBLINGS
|
static int |
FROM_ROOT
|
static int |
FROM_SELF
|
static int |
FUNC_BOOLEAN
|
static int |
FUNC_CEILING
|
static int |
FUNC_CONCAT
|
static int |
FUNC_CONTAINS
|
static int |
FUNC_COUNT
|
static int |
FUNC_CURRENT
|
static int |
FUNC_DOCLOCATION
|
static int |
FUNC_EXT_ELEM_AVAILABLE
|
static int |
FUNC_EXT_FUNCTION_AVAILABLE
|
static int |
FUNC_FALSE
|
static int |
FUNC_FLOOR
|
static int |
FUNC_GENERATE_ID
|
static int |
FUNC_ID
|
static int |
FUNC_KEY
|
static int |
FUNC_LANG
|
static int |
FUNC_LAST
|
static int |
FUNC_LOCAL_PART
|
static int |
FUNC_NAMESPACE
|
static int |
FUNC_NORMALIZE_SPACE
|
static int |
FUNC_NOT
|
static int |
FUNC_NUMBER
|
static int |
FUNC_POSITION
|
static int |
FUNC_QNAME
|
static int |
FUNC_ROUND
|
static int |
FUNC_STARTS_WITH
|
static int |
FUNC_STRING
|
static int |
FUNC_STRING_LENGTH
|
static int |
FUNC_SUBSTRING
|
static int |
FUNC_SUBSTRING_AFTER
|
static int |
FUNC_SUBSTRING_BEFORE
|
static int |
FUNC_SUM
|
static int |
FUNC_SYSTEM_PROPERTY
|
static int |
FUNC_TRANSLATE
|
static int |
FUNC_TRUE
|
static int |
FUNC_UNPARSED_ENTITY_URI
|
static int |
LOCATIONPATHEX_ISSIMPLE
|
static int |
LOCATIONPATHEX_MASK
|
static int |
MAPINDEX_LENGTH
The length is always the opcode position + 1. |
static int |
MATCH_ANY_ANCESTOR
For match patterns. |
static int |
MATCH_ATTRIBUTE
For match patterns. |
static int |
MATCH_IMMEDIATE_ANCESTOR
For match patterns. |
static double |
MATCH_SCORE_NODETEST
The match score if the pattern consists of just a NodeTest. |
static double |
MATCH_SCORE_NONE
The match score if no match is made. |
static double |
MATCH_SCORE_NSWILD
The match score if the pattern pattern has the form NCName:*. |
static double |
MATCH_SCORE_OTHER
The match score if the pattern consists of something other than just a NodeTest or just a qname. |
static double |
MATCH_SCORE_QNAME
The match score if the pattern has the form of a QName optionally preceded by an @ character. |
static int |
NODENAME
[NODENAME] [index to ns token or EMPTY] [index to name token] returns: XBoolean |
static int |
NODETYPE_ANYELEMENT
[NODETYPE_ANY] No size or arguments. |
static int |
NODETYPE_COMMENT
[NODETYPE_COMMENT] No size or arguments. |
static int |
NODETYPE_NODE
[NODETYPE_NODE] No size or arguments. |
static int |
NODETYPE_PI
[NODETYPE_PI] [index to token] Note: must not overlap function OP number! returns: XBoolean |
static int |
NODETYPE_ROOT
[NODETYPE_ROOT] No size or arguments. |
static int |
NODETYPE_TEXT
[NODETYPE_TEXT] No size or arguments. |
static int |
OP_AND
[OP_AND] [length] {boolean expression} {boolean expression} returns: XBoolean |
static int |
OP_ARGUMENT
[OP_ARGUMENT] (Function argument.) [length] {expression} returns: XNodeSet XNumber XString XBoolean XRTree XObject |
static int |
OP_BOOL
[OP_BOOL] (cast operation) [length] {expression} returns: XBoolean |
static int |
OP_DIV
[OP_DIV] [length] {number expression} {number expression} returns: XNumber |
static int |
OP_EQUALS
[OP_EQUALS] [length] {expression} {expression} returns: XBoolean |
static int |
OP_EXTFUNCTION
[OP_EXTFUNCTION] (Extension function.) [length] [index to namespace token] [index to function name token] {OP_ARGUMENT}* returns: XNodeSet XNumber XString XBoolean XRTree XObject |
static int |
OP_FUNCTION
[OP_FUNCTION] [length] [FUNC_name] {OP_ARGUMENT}* [ENDOP] returns: XNodeSet XNumber XString XBoolean XRTree XObject |
static int |
OP_GROUP
[OP_GROUP] [length] {expression} returns: XNodeSet XNumber XString XBoolean XRTree XObject |
static int |
OP_GT
[OP_GT] (greater-than) [length] {number expression} {number expression} returns: XBoolean |
static int |
OP_GTE
[OP_GTE] (greater-than-or-equals) [length] {number expression} {number expression} returns: XBoolean |
static int |
OP_LITERAL
[OP_LITERAL] [3] [index to token] returns: XString |
static int |
OP_LOCATIONPATH
[OP_LOCATIONPATH] [length] {FROM_stepType} | {function}{predicate}* [ENDOP] (Note that element and attribute namespaces and names can be wildcarded '*'.) returns: XNodeSet |
static int |
OP_LOCATIONPATH_EX
|
static int |
OP_LOCATIONPATHPATTERN
[OP_UNION] [length] {PathExpr}+ returns: XNodeSet |
static int |
OP_LT
[OP_LT] (less-than) [length] {number expression} {number expression} returns: XBoolean |
static int |
OP_LTE
[OP_LTE] (less-than-or-equals) [length] {number expression} {number expression} returns: XBoolean |
static int |
OP_MATCHPATTERN
[OP_UNION] [length] {PathExpr}+ returns: XNodeSet |
static int |
OP_MINUS
[OP_MINUS] [length] {number expression} {number expression} returns: XNumber |
static int |
OP_MOD
[OP_MOD] [length] {number expression} {number expression} returns: XNumber |
static int |
OP_MULT
[OP_MULT] [length] {number expression} {number expression} returns: XNumber |
static int |
OP_NEG
[OP_NEG] [length] {number expression} returns: XNumber |
static int |
OP_NOTEQUALS
[OP_NOTEQUALS] [length] {expression} {expression} returns: XBoolean |
static int |
OP_NUMBER
[OP_NUMBER] (cast operation) [length] {expression} returns: XBoolean |
static int |
OP_NUMBERLIT
[OP_NUMBERLIT] (Number literal.) [3] [index to token] returns: XString |
static int |
OP_OR
[OP_OR] [length] {boolean expression} {boolean expression} returns: XBoolean |
static int |
OP_PLUS
[OP_PLUS] [length] {number expression} {number expression} returns: XNumber |
static int |
OP_PREDICATE
[OP_PREDICATE] [length] {expression} [ENDOP] (For safety) returns: XBoolean or XNumber |
static int |
OP_QUO
[OP_QUO] [length] {number expression} {number expression} returns: XNumber |
static int |
OP_STRING
[OP_STRING] (cast operation) [length] {expression} returns: XString |
static int |
OP_UNION
[OP_UNION] [length] {PathExpr}+ returns: XNodeSet |
static int |
OP_VARIABLE
[OP_VARIABLE] [3] [index to token] returns: XString |
static int |
OP_XPATH
[OP_XPATH] [length] {expression} returns: XNodeSet XNumber XString XBoolean XRTree XObject |
static java.lang.String |
PSEUDONAME_ANY
used mainly for keys in the pattern lookup table, for those nodes that don't have unique lookup values. |
static java.lang.String |
PSEUDONAME_COMMENT
used mainly for keys in the pattern lookup table, for those nodes that don't have unique lookup values. |
static java.lang.String |
PSEUDONAME_OTHER
used mainly for keys in the pattern lookup table, for those nodes that don't have unique lookup values. |
static java.lang.String |
PSEUDONAME_PI
used mainly for keys in the pattern lookup table, for those nodes that don't have unique lookup values. |
static java.lang.String |
PSEUDONAME_ROOT
used mainly for keys in the pattern lookup table, for those nodes that don't have unique lookup values. |
static java.lang.String |
PSEUDONAME_TEXT
used mainly for keys in the pattern lookup table, for those nodes that don't have unique lookup values. |
Constructor Summary | |
XPath()
Construct an XPath object. |
|
XPath(ProblemListener problemListener)
Construct a XPath, passing in a problem listener. |
Method Summary | |
protected XBoolean |
and(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
OR two expressions and return the boolean result. |
protected XObject |
arg(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Execute a function argument. |
protected XBoolean |
bool(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Cast an expression to a boolean. |
protected XNumber |
div(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Divide a number. |
protected XBoolean |
equals(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Tell if two expressions are functionally equal. |
XObject |
execute(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Execute the XPath object from a given opcode position. |
XObject |
execute(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos,
NodeCallback callback,
java.lang.Object callbackInfo,
boolean stopAtFirst)
Execute the XPath object from a given opcode position, calling back to a NodeCallback interface as the nodes are found. |
XObject |
execute(XPathSupport execContext,
org.w3c.dom.Node contextNode,
PrefixResolver namespaceContext)
Given an expression and a context, evaluate the XPath and return the result. |
XObject |
execute(XPathSupport execContext,
org.w3c.dom.Node contextNode,
PrefixResolver namespaceContext,
NodeCallback callback,
java.lang.Object callbackInfo,
boolean stopAtFirst)
Given an expression and a context, evaluate the XPath and call the callback as nodes are found. |
protected XObject |
extfunction(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos,
java.lang.String namespace,
java.lang.String extensionName,
java.util.Vector argVec,
java.lang.Object methodKey)
Handle an extension function. |
int |
getArgLengthOfStep(int opPos)
Go to the first child of a given operation. |
static int |
getFirstChildPos(int opPos)
Go to the first child of a given operation. |
static int |
getFirstChildPosOfStep(int opPos)
Go to the first child of a given operation. |
double |
getMatchScore(XPathSupport execContext,
org.w3c.dom.Node context)
Get the match score of the given node. |
int |
getNextOpPos(int opPos)
Given an operation position, return the end position, i.e. |
static int |
getNextOpPos(int[] opMap,
int opPos)
Given an operation position, return the end position, i.e. |
int |
getOp(int opPos)
Given an operation position, return the current op. |
int[] |
getOpMap()
Get the opcode list that describes the XPath operations. |
java.lang.String |
getPatternString()
Get the pattern string. |
ProblemListener |
getProblemListener()
Get the problem listener property. |
java.util.Vector |
getTargetElementStrings()
This method is for building indexes of match patterns for fast lookup. |
java.lang.Object[] |
getTokenQueue()
Get the XPath as a list of tokens. |
int |
getTokenQueueSize()
Get size of the token queue. |
protected XObject |
group(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Execute an expression as a group. |
protected XBoolean |
gt(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Tell if one argument is greater than the other argument. |
protected XBoolean |
gte(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Tell if one argument is greater than or equal to the other argument. |
static int |
installFunction(java.lang.String name,
Function func)
Install a built-in function. |
void |
installFunction(java.lang.String name,
int funcIndex,
Function func)
Install a built-in function. |
protected XString |
literal(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Get a literal value. |
XNodeSet |
locationPath(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos,
NodeCallback callback,
java.lang.Object callbackInfo,
boolean stopAtFirst)
Execute a location path. |
protected XNumber |
locationPathPattern(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Execute a location path. |
protected XBoolean |
lt(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Tell if one argument is less than the other argument. |
protected XBoolean |
lte(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Tell if one argument is less than or equal to the other argument. |
protected XObject |
matchPattern(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Computes the union of its operands which must be node-sets. |
protected XNumber |
minus(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Give the difference of two arguments. |
protected XNumber |
mod(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Return the remainder from a truncating division. |
protected XNumber |
mult(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Multiply two arguments. |
protected XNumber |
neg(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Return the negation of a number. |
protected XBoolean |
notequals(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Tell if two expressions are functionally not equal. |
protected XNumber |
number(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Cast an expression to a number. |
protected XNumber |
numberlit(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Get a literal value. |
protected XBoolean |
or(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
OR two expressions and return the boolean result. |
protected XNumber |
plus(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Give the sum of two arguments. |
XObject |
predicate(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Evaluate a predicate. |
protected XNumber |
quo(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Return the remainder from a truncating division. |
void |
setProblemListener(ProblemListener l)
Set the problem listener property. |
protected MutableNodeList |
step(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Execute a step in a location path. |
protected XString |
string(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Cast an expression to a string. |
protected XNodeSet |
union(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos,
NodeCallback callback,
java.lang.Object callbackInfo)
Computes the union of its operands which must be node-sets. |
protected XObject |
variable(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Get a literal value. |
protected XObject |
xpath(XPathSupport execContext,
org.w3c.dom.Node context,
int opPos)
Execute from the beginning of the xpath. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int MAPINDEX_LENGTH
public static final double MATCH_SCORE_NONE
public static final double MATCH_SCORE_QNAME
public static final double MATCH_SCORE_NSWILD
public static final double MATCH_SCORE_NODETEST
public static final double MATCH_SCORE_OTHER
public static final int ENDOP
public static final int EMPTY
public static final int ELEMWILDCARD
public static final int OP_XPATH
public static final int OP_OR
public static final int OP_AND
public static final int OP_NOTEQUALS
public static final int OP_EQUALS
public static final int OP_LTE
public static final int OP_LT
public static final int OP_GTE
public static final int OP_GT
public static final int OP_PLUS
public static final int OP_MINUS
public static final int OP_MULT
public static final int OP_DIV
public static final int OP_MOD
public static final int OP_QUO
public static final int OP_NEG
public static final int OP_STRING
public static final int OP_BOOL
public static final int OP_NUMBER
public static final int OP_UNION
public static final int OP_LITERAL
public static final int OP_VARIABLE
public static final int OP_GROUP
public static final int OP_NUMBERLIT
public static final int OP_ARGUMENT
public static final int OP_EXTFUNCTION
public static final int OP_FUNCTION
public static final int OP_LOCATIONPATH
public static final int LOCATIONPATHEX_MASK
public static final int LOCATIONPATHEX_ISSIMPLE
public static final int OP_LOCATIONPATH_EX
public static final int OP_PREDICATE
public static final int OP_MATCHPATTERN
public static final int OP_LOCATIONPATHPATTERN
public static final int NODETYPE_COMMENT
public static final int NODETYPE_TEXT
public static final int NODETYPE_PI
public static final int NODETYPE_NODE
public static final int NODENAME
public static final int NODETYPE_ROOT
public static final int NODETYPE_ANYELEMENT
public static final int FROM_ANCESTORS
public static final int FROM_ANCESTORS_OR_SELF
public static final int FROM_ATTRIBUTES
public static final int FROM_CHILDREN
public static final int FROM_DESCENDANTS
public static final int FROM_DESCENDANTS_OR_SELF
public static final int FROM_FOLLOWING
public static final int FROM_FOLLOWING_SIBLINGS
public static final int FROM_PARENT
public static final int FROM_PRECEDING
public static final int FROM_PRECEDING_SIBLINGS
public static final int FROM_SELF
public static final int FROM_NAMESPACE
public static final int FROM_ROOT
public static final int FUNC_CURRENT
public static final int FUNC_LAST
public static final int FUNC_POSITION
public static final int FUNC_COUNT
public static final int FUNC_ID
public static final int FUNC_KEY
public static final int FUNC_LOCAL_PART
public static final int FUNC_NAMESPACE
public static final int FUNC_QNAME
public static final int FUNC_GENERATE_ID
public static final int FUNC_NOT
public static final int FUNC_TRUE
public static final int FUNC_FALSE
public static final int FUNC_BOOLEAN
public static final int FUNC_NUMBER
public static final int FUNC_FLOOR
public static final int FUNC_CEILING
public static final int FUNC_ROUND
public static final int FUNC_SUM
public static final int FUNC_STRING
public static final int FUNC_STARTS_WITH
public static final int FUNC_CONTAINS
public static final int FUNC_SUBSTRING_BEFORE
public static final int FUNC_SUBSTRING_AFTER
public static final int FUNC_NORMALIZE_SPACE
public static final int FUNC_TRANSLATE
public static final int FUNC_CONCAT
public static final int FUNC_SUBSTRING
public static final int FUNC_STRING_LENGTH
public static final int FUNC_SYSTEM_PROPERTY
public static final int FUNC_LANG
public static final int FUNC_EXT_FUNCTION_AVAILABLE
public static final int FUNC_EXT_ELEM_AVAILABLE
public static final int FUNC_DOCLOCATION
public static final int FUNC_UNPARSED_ENTITY_URI
public static final int MATCH_ATTRIBUTE
public static final int MATCH_ANY_ANCESTOR
public static final int MATCH_IMMEDIATE_ANCESTOR
public static final java.lang.String PSEUDONAME_ANY
public static final java.lang.String PSEUDONAME_ROOT
public static final java.lang.String PSEUDONAME_TEXT
public static final java.lang.String PSEUDONAME_COMMENT
public static final java.lang.String PSEUDONAME_PI
public static final java.lang.String PSEUDONAME_OTHER
Constructor Detail |
public XPath(ProblemListener problemListener)
problemListener
- An interface whereby the caller
can listen for errors and warnings.public XPath()
Method Detail |
public java.lang.String getPatternString()
public java.lang.Object[] getTokenQueue()
public int getTokenQueueSize()
public int[] getOpMap()
public void setProblemListener(ProblemListener l)
l
- A ProblemListener interface.public ProblemListener getProblemListener()
public XObject execute(XPathSupport execContext, org.w3c.dom.Node contextNode, PrefixResolver namespaceContext) throws org.xml.sax.SAXException
execContext
- The execution context.contextNode
- The node that "." expresses.namespaceContext
- The context in which namespaces in the
XPath are supposed to be expanded.public XObject execute(XPathSupport execContext, org.w3c.dom.Node contextNode, PrefixResolver namespaceContext, NodeCallback callback, java.lang.Object callbackInfo, boolean stopAtFirst) throws org.xml.sax.SAXException
execContext
- The execution context.contextNode
- The node that "." expresses.namespaceContext
- The context in which namespaces in the
XPath are supposed to be expanded.callback
- Interface that implements the processLocatedNode method.callbackInfo
- Object that will be passed to the processLocatedNode method.stopAtFirst
- True if the search should stop once the first node in document
order is found.public double getMatchScore(XPathSupport execContext, org.w3c.dom.Node context) throws org.xml.sax.SAXException
context
- The current source tree context node.public void installFunction(java.lang.String name, int funcIndex, Function func)
name
- The unqualified name of the function.funcIndex
- The index of the function in the table.func
- A Implementation of an XPath Function object.public static int installFunction(java.lang.String name, Function func)
name
- The unqualified name of the function.func
- A Implementation of an XPath Function object.protected XObject xpath(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XBoolean or(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XBoolean and(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XBoolean notequals(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XBoolean equals(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XBoolean lte(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XBoolean lt(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XBoolean gte(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XBoolean gt(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XNumber plus(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XNumber minus(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XNumber mult(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XNumber div(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XNumber mod(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XNumber quo(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XNumber neg(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XString string(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XBoolean bool(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XNumber number(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XNodeSet union(XPathSupport execContext, org.w3c.dom.Node context, int opPos, NodeCallback callback, java.lang.Object callbackInfo) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.callback
- Interface that implements the processLocatedNode method.callbackInfo
- Object that will be passed to the processLocatedNode method.protected XString literal(XPathSupport execContext, org.w3c.dom.Node context, int opPos)
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XObject variable(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XObject group(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XNumber numberlit(XPathSupport execContext, org.w3c.dom.Node context, int opPos)
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XObject arg(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.public XNodeSet locationPath(XPathSupport execContext, org.w3c.dom.Node context, int opPos, NodeCallback callback, java.lang.Object callbackInfo, boolean stopAtFirst) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.callback
- Interface that implements the processLocatedNode method.callbackInfo
- Object that will be passed to the processLocatedNode method.public XObject predicate(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected MutableNodeList step(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XObject extfunction(XPathSupport execContext, org.w3c.dom.Node context, int opPos, java.lang.String namespace, java.lang.String extensionName, java.util.Vector argVec, java.lang.Object methodKey) throws org.xml.sax.SAXException
protected XObject matchPattern(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.protected XNumber locationPathPattern(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
context
- The current source tree context node.opPos
- The current position in the m_opMap array.public java.util.Vector getTargetElementStrings()
public XObject execute(XPathSupport execContext, org.w3c.dom.Node context, int opPos) throws org.xml.sax.SAXException
execContext
- The execution context.context
- The current source tree context node.opPos
- The current position in the xpath.m_opMap array.callback
- Interface that implements the processLocatedNode method.callbackInfo
- Object that will be passed to the processLocatedNode method.public XObject execute(XPathSupport execContext, org.w3c.dom.Node context, int opPos, NodeCallback callback, java.lang.Object callbackInfo, boolean stopAtFirst) throws org.xml.sax.SAXException
execContext
- The execution context.context
- The current source tree context node.opPos
- The current position in the xpath.m_opMap array.callback
- Interface that implements the processLocatedNode method.callbackInfo
- Object that will be passed to the processLocatedNode method.public int getOp(int opPos)
public int getNextOpPos(int opPos)
public static int getNextOpPos(int[] opMap, int opPos)
public static int getFirstChildPos(int opPos)
public int getArgLengthOfStep(int opPos)
public static int getFirstChildPosOfStep(int opPos)
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |