Uses of Class org.apache.xpath.XPathContext

Uses in package org.apache.xpath.objects

Constructors with parameter type org.apache.xpath.XPathContext

DTMXRTreeFrag.DTMXRTreeFrag(int dtmIdentity, XPathContext xctxt)
XNodeSetForDOM.XNodeSetForDOM(NodeIterator nodeIter, XPathContext xctxt)
XNodeSetForDOM.XNodeSetForDOM(NodeList nodeList, XPathContext xctxt)
Create an XRTreeFrag Object.
XRTreeFrag.XRTreeFrag(int root, XPathContext xctxt, ExpressionNode parent)
Create an XRTreeFrag Object.

Methods with parameter type org.apache.xpath.XPathContext

Object
XObject.castToType(int t, XPathContext support)
Cast object to type t.
XObject
XObject.create(Object val, XPathContext xctxt)
Create the right XObject based on the type of the object passed.
XObject
XObjectFactory.create(Object val, XPathContext xctxt)
Create the right XObject based on the type of the object passed.
XObject
For support of literal objects in xpaths.
XObject
For support of literal objects in xpaths.
double
Evaluate expression to a number.
int
Cast result object to a result tree fragment.
int
Cast result object to a result tree fragment.
int
Cast result object to a result tree fragment.
DocumentFragment
Cast result object to a result tree fragment.

Uses in package org.apache.xalan.serialize

Methods with parameter type org.apache.xpath.XPathContext

void
Given a result tree fragment, walk the tree and output it to the SerializationHandler.

Uses in package org.apache.xpath

Constructors with parameter type org.apache.xpath.XPathContext

NodeSetDTM.NodeSetDTM(NodeIterator iterator, XPathContext xctxt)
Create a NodeSetDTM, and copy the members of the given DTMIterator into it.
NodeSetDTM.NodeSetDTM(NodeList nodeList, XPathContext xctxt)
Create a NodeSetDTM, and copy the members of the given DTMIterator into it.

Methods with parameter type org.apache.xpath.XPathContext

int
NodeSet.addNodeInDocOrder(Node node, boolean test, XPathContext support)
Add the node into a vector of nodes where it should occur in document order.
int
NodeSet.addNodeInDocOrder(Node node, XPathContext support)
Add the node into a vector of nodes where it should occur in document order.
int
NodeSetDTM.addNodeInDocOrder(int node, boolean test, XPathContext support)
Add the node into a vector of nodes where it should occur in document order.
int
Add the node into a vector of nodes where it should occur in document order.
void
NodeSet.addNodesInDocOrder(NodeIterator iterator, XPathContext support)
Copy NodeList members into this nodelist, adding in document order.
void
NodeSet.addNodesInDocOrder(NodeList nodelist, XPathContext support)
Copy NodeList members into this nodelist, adding in document order.
void
Copy NodeList members into this nodelist, adding in document order.
DTMIterator
Expression.asIterator(XPathContext xctxt, int contextNode)
Given an select expression and a context, evaluate the XPath and return the resulting iterator.
DTMIterator
Expression.asIteratorRaw(XPathContext xctxt, int contextNode)
Given an select expression and a context, evaluate the XPath and return the resulting iterator, but do not clone.
int
Return the first node out of the nodeset, if this expression is a nodeset expression.
boolean
Evaluate expression to a boolean.
boolean
XPath.bool(XPathContext xctxt, int contextNode, PrefixResolver namespaceContext)
Given an expression and a context, evaluate the XPath and return the result.
void
Expression.error(XPathContext xctxt, String msg, Object[] args)
Tell the user of an error, and probably throw an exception.
void
XPath.error(XPathContext xctxt, int sourceNode, String msg, Object[] args)
Tell the user of an error, and probably throw an exception.
XObject
Execute an expression in the XPath runtime context, and return the result of the expression.
XObject
Expression.execute(XPathContext xctxt, boolean destructiveOK)
Execute an expression in the XPath runtime context, and return the result of the expression, but tell that a "safe" object doesn't have to be returned.
XObject
Expression.execute(XPathContext xctxt, int currentNode)
Execute an expression in the XPath runtime context, and return the result of the expression.
XObject
Expression.execute(XPathContext xctxt, int currentNode, DTM dtm, int expType)
Execute an expression in the XPath runtime context, and return the result of the expression.
XObject
XPath.execute(XPathContext xctxt, int contextNode, PrefixResolver namespaceContext)
Given an expression and a context, evaluate the XPath and return the result.
XObject
XPath.execute(XPathContext xctxt, org.w3c.dom.Node contextNode, PrefixResolver namespaceContext)
Given an expression and a context, evaluate the XPath and return the result.
void
Expression.executeCharsToContentHandler(XPathContext xctxt, ContentHandler handler)
Execute an expression in the XPath runtime context, and return the result of the expression.
XObject
Get a global variable or parameter from the global stack frame.
XObject
VariableStack.getGlobalVariable(XPathContext xctxt, int index, boolean destructiveOK)
Get a global variable or parameter from the global stack frame.
XObject
Get a local variable or parameter in the current stack frame.
XObject
VariableStack.getLocalVariable(XPathContext xctxt, int index, boolean destructiveOK)
Get a local variable or parameter in the current stack frame.
double
XPath.getMatchScore(XPathContext xctxt, int context)
Get the match score of the given node.
int
SourceTreeManager.getSourceTree(Source source, SourceLocator locator, XPathContext xctxt)
Get the source tree from the input source.
int
SourceTreeManager.getSourceTree(String base, String urlString, SourceLocator locator, XPathContext xctxt)
Get the source tree from the a base URL and a URL string.
XObject
Get a variable based on it's qualified name.
double
Evaluate expression to a number.
int
SourceTreeManager.parseToNode(Source source, SourceLocator locator, XPathContext xctxt)
Try to create a DOM source tree from the input source.
boolean
Get information about whether or not an element should strip whitespace.
void
Expression.warn(XPathContext xctxt, String msg, Object[] args)
Warn the user of an problem.
void
XPath.warn(XPathContext xctxt, int sourceNode, String msg, Object[] args)
Warn the user of an problem.
XMLString
Cast result object to a string.

Methods with return type org.apache.xpath.XPathContext

XPathContext
Returns the XPathSupport object used in this CachedXPathAPI %REVIEW% I'm somewhat concerned about the loss of encapsulation this causes, but the xml-security folks say they need it.
XPathContext
Return the XPathContext associated with this XPathExpressionContext.

Uses in package org.apache.xalan.transformer

Constructors with parameter type org.apache.xpath.XPathContext

KeyTable.KeyTable(int doc, PrefixResolver nscontext, QName name, Vector keyDeclarations, XPathContext xctxt)
Build a keys table.
Construct a NodeSorter, passing in the XSL TransformerFactory so it can know how to get the node data according to the proper whitespace rules.

Methods with parameter type org.apache.xpath.XPathContext

int
CountersTable.countNode(XPathContext support, ElemNumber numberElem, int node)
Count forward until the given node is found, or until we have looked to the given amount.
XNodeSet
KeyManager.getNodeSetDTMByKey(XPathContext xctxt, int doc, QName name, XMLString ref, PrefixResolver nscontext)
Given a valid element key, return the corresponding node list.
void
Set the execution context for XPath.
void
NodeSorter.sort(DTMIterator v, Vector keys, XPathContext support)
Given a vector of nodes, sort each node according to the criteria in the keys.

Methods with return type org.apache.xpath.XPathContext

XPathContext
Get the XPath context associated with this transformer.

Uses in package org.apache.xpath.patterns

Methods with parameter type org.apache.xpath.XPathContext

XObject
Execute this pattern step, including predicates.
XObject
Test a node to see if it matches the given node test.
XObject
Test the current node to see if it matches the given node test.
XObject
Execute this pattern step, including predicates.
XObject
Test a node to see if it matches any of the patterns in the union.
XObject
FunctionPattern.execute(XPathContext xctxt, int context)
Test a node to see if it matches the given node test.
XObject
NodeTest.execute(XPathContext xctxt, int context)
Tell what the test score is for the given node.
XObject
StepPattern.execute(XPathContext xctxt, int currentNode)
Execute this pattern step, including predicates.
XObject
FunctionPattern.execute(XPathContext xctxt, int context, DTM dtm, int expType)
Test a node to see if it matches the given node test.
XObject
NodeTest.execute(XPathContext xctxt, int context, DTM dtm, int expType)
Tell what the test score is for the given node.
XObject
StepPattern.execute(XPathContext xctxt, int currentNode, DTM dtm, int expType)
Execute an expression in the XPath runtime context, and return the result of the expression.
XObject
Execute the match pattern step relative to another step.
int
Get the count of the nodes that match the test, which is the proximity position of the last node that can pass this test in the sub context selection.
double
StepPattern.getMatchScore(XPathContext xctxt, int context)
Get the match score of the given node.
int
Get the proximity position index of the current node based on this node test.

Uses in package org.apache.xpath.operations

Methods with parameter type org.apache.xpath.XPathContext

boolean
Evaluate this operation directly to a boolean.
boolean
Evaluate this operation directly to a boolean.
boolean
Execute a binary operation by calling execute on each of the operands, and then calling the operate method on the derived class.
boolean
Evaluate this operation directly to a boolean.
XObject
AND two expressions and return the boolean result.
XObject
Execute a binary operation by calling execute on each of the operands, and then calling the operate method on the derived class.
XObject
OR two expressions and return the boolean result.
XObject
Execute the operand and apply the unary operation to the result.
XObject
Execute an expression in the XPath runtime context, and return the result of the expression.
XObject
Variable.execute(XPathContext xctxt, boolean destructiveOK)
Dereference the variable, and return the reference value.
XObject
VariableSafeAbsRef.execute(XPathContext xctxt, boolean destructiveOK)
Dereference the variable, and return the reference value.
double
Evaluate this operation directly to a double.
double
Evaluate this operation directly to a double.
double
Evaluate this operation directly to a double.
double
Evaluate this operation directly to a double.
double
Evaluate this operation directly to a double.
double
Evaluate this operation directly to a double.
double
Evaluate this operation directly to a double.

Uses in package org.apache.xpath.axes

Methods with parameter type org.apache.xpath.XPathContext

short
Test whether a specified node is visible in the logical view of a TreeWalker or NodeIterator.
DTMIterator
LocPathIterator.asIterator(XPathContext xctxt, int contextNode)
Given an select expression and a context, evaluate the XPath and return the resulting iterator.
int
Return the first node out of the nodeset, if this expression is a nodeset expression.
int
Return the first node out of the nodeset, if this expression is a nodeset expression.
int
Return the first node out of the nodeset, if this expression is a nodeset expression.
int
Return the first node out of the nodeset, if this expression is a nodeset expression.
boolean
Evaluate this operation directly to a boolean.
XObject
Execute this iterator, meaning create a clone that can store state, and initialize it for fast execution from the current runtime state.
void
LocPathIterator.executeCharsToContentHandler(XPathContext xctxt, org.xml.sax.ContentHandler handler)
Execute an expression in the XPath runtime context, and return the result of the expression.
XNodeSet
FilterExprIteratorSimple.executeFilterExpr(int context, XPathContext xctxt, PrefixResolver prefixResolver, boolean isTopLevel, int stackFrame, Expression expr)
Execute the expression.
int
Get the index of the last node that can be itterated to.
int
Get the index of the last node that can be itterated to.
int
int
Get the index of the last node that can be itterated to.
int
Get the number of nodes in this node list.
int
Get the index of the last node that can be itterated to.
int
Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.
int
Get the current sub-context position.
int
Get the current sub-context position.

Methods with return type org.apache.xpath.XPathContext

XPathContext
The XPath execution context we are operating on.

Uses in package org.apache.xpath.jaxp

Methods with parameter type org.apache.xpath.XPathContext

XObject
Get a variable based on it's qualified name.

Uses in package org.apache.xalan.extensions

Methods with return type org.apache.xpath.XPathContext

XPathContext
Get the XPathContext that owns this ExpressionContext.

Uses in package org.apache.xpath.functions

Methods with parameter type org.apache.xpath.XPathContext

XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute an XPath function object.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
void
Execute an expression in the XPath runtime context, and return the result of the expression.
int
Get the position in the current context node list.
int
Get the position in the current context node list.

Uses in package org.apache.xalan.templates

Constructors with parameter type org.apache.xpath.XPathContext

AVTPartXPath.AVTPartXPath(String val, PrefixResolver nsNode, XPathParser xpathProcessor, XPathFactory factory, XPathContext liaison)
Construct a simple AVT part.

Methods with parameter type org.apache.xpath.XPathContext

void
FuncDocument.error(XPathContext xctxt, String msg, args[] )
Tell the user of an error, and probably throw an exception.
String
AVT.evaluate(XPathContext xctxt, int context, PrefixResolver nsNode)
Evaluate the AVT and return a String.
void
AVTPart.evaluate(XPathContext xctxt, FastStringBuffer buf, int context, PrefixResolver nsNode)
Write the evaluated value into the given string buffer.
void
Write the value into the buffer.
void
Write the value into the buffer.
XObject
Execute the function.
XObject
Execute the function.
XObject
Execute the function.
XObject
For support of literal objects in xpaths.
XObject
For support of literal objects in xpaths.
org.apache.xalan.templates.TemplateSubPatternAssociation
TemplateList.getHead(XPathContext xctxt, int targetNode, DTM dtm)
Get the head of the most likely list of associations to check, based on the name and type of the targetNode argument.
int
Get the previous node to be counted.
int
ElemNumber.getTargetNode(XPathContext xctxt, int sourceNode)
Get the target node that will be counted..
ElemTemplate
TemplateList.getTemplate(XPathContext xctxt, int targetNode, QName mode, boolean quietConflictWarnings, DTM dtm)
Given a target element, find the template that best matches in the given XSL document, according to the rules specified in the xsl draft.
ElemTemplate
TemplateList.getTemplate(XPathContext xctxt, int targetNode, QName mode, int maxImportLevel, int endImportLevel, boolean quietConflictWarnings, DTM dtm)
Given a target element, find the template that best matches in the given XSL document, according to the rules specified in the xsl draft.
ElemTemplate
StylesheetRoot.getTemplateComposed(XPathContext xctxt, int targetNode, QName mode, boolean quietConflictWarnings, DTM dtm)
Get an "xsl:template" property by node match.
ElemTemplate
StylesheetRoot.getTemplateComposed(XPathContext xctxt, int targetNode, QName mode, int maxImportLevel, int endImportLevel, boolean quietConflictWarnings, DTM dtm)
Get an "xsl:template" property by node match.
ElemTemplate
TemplateList.getTemplateFast(XPathContext xctxt, int targetNode, int expTypeID, QName mode, int maxImportLevel, boolean quietConflictWarnings, DTM dtm)
Given a target element, find the template that best matches in the given XSL document, according to the rules specified in the xsl draft.
WhiteSpaceInfo
StylesheetRoot.getWhiteSpaceInfo(XPathContext support, int targetElement, DTM dtm)
Get information about whether or not an element should strip whitespace.
void
Set the XPath support.
boolean
StylesheetRoot.shouldStripWhiteSpace(XPathContext support, int targetElement)
Get information about whether or not an element should strip whitespace.
boolean
ElemTemplateElement.shouldStripWhiteSpace(XPathContext support, org.w3c.dom.Element targetElement)
Get information about whether or not an element should strip whitespace.
DTMIterator
ElemForEach.sortNodes(XPathContext xctxt, Vector keys, DTMIterator sourceNodes)
Sort given nodes
void
FuncDocument.warn(XPathContext xctxt, String msg, args[] )
Warn the user of a problem.
void
FuncFormatNumb.warn(XPathContext xctxt, String msg, args[] )
Warn the user of a problem.

Copyright B) 2006 Apache XML Project. All Rights Reserved.