Uses of Class
org.apache.xpath.XPathContext
Packages that use XPathContext
Package
Description
Implementation of Xalan Extension Mechanism.
Implements the
Templates
interface,
and defines a set of classes that represent an XSLT stylesheet.In charge of run-time transformations and the production of result trees.
Implementation of XPath; for the most part, only classes meant for public use are
found at this root level of the XPath packages.
Implementation of XPath LocationPath support -- primary classes are
LocPathIterator and UnionPathIterator.
Implements XPath functions -- each function is derived from Function,
FunctionOneArg, Function2Args, etc, with number-of-arguments checking being
applied mainly at compile time -- this package only implements XPath functions,
XSLT functions are found in the "templates" package.
Implementation of XPath polymorphic type objects -- this package will grow
as XPath objects are expanded to support XML Schema data types.
Support for XPath operations, such as +, -, string(), etc.
Implementation of XPath nodeTest support, and XSLT pattern matching support.
-
Uses of XPathContext in org.apache.xalan.extensions
Methods in org.apache.xalan.extensions that return XPathContextModifier and TypeMethodDescriptionExpressionContext.getXPathContext()
Get the XPathContext that owns this ExpressionContext. -
Uses of XPathContext in org.apache.xalan.serialize
Methods in org.apache.xalan.serialize with parameters of type XPathContextModifier and TypeMethodDescriptionstatic void
SerializerUtils.outputResultTreeFragment
(SerializationHandler handler, XObject obj, XPathContext support) Given a result tree fragment, walk the tree and output it to the SerializationHandler. -
Uses of XPathContext in org.apache.xalan.templates
Methods in org.apache.xalan.templates with parameters of type XPathContextModifier and TypeMethodDescriptionvoid
FuncDocument.error
(XPathContext xctxt, String msg, Object[] args) Tell the user of an error, and probably throw an exception.AVT.evaluate
(XPathContext xctxt, int context, PrefixResolver nsNode) Evaluate the AVT and return a String.abstract void
AVTPart.evaluate
(XPathContext xctxt, FastStringBuffer buf, int context, PrefixResolver nsNode) Write the evaluated value into the given string buffer.void
AVTPartSimple.evaluate
(XPathContext xctxt, FastStringBuffer buf, int context, PrefixResolver nsNode) Write the value into the buffer.void
AVTPartXPath.evaluate
(XPathContext xctxt, FastStringBuffer buf, int context, PrefixResolver nsNode) Write the value into the buffer.FuncDocument.execute
(XPathContext xctxt) Execute the function.FuncFormatNumb.execute
(XPathContext xctxt) Execute the function.FuncKey.execute
(XPathContext xctxt) Execute the function.XUnresolvedVariable.execute
(XPathContext xctxt) For support of literal objects in xpaths.XUnresolvedVariableSimple.execute
(XPathContext xctxt) 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
ElemNumber.getPreviousNode
(XPathContext xctxt, int pos) Get the previous node to be counted.int
ElemNumber.getTargetNode
(XPathContext xctxt, int sourceNode) Get the target node that will be counted..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.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.StylesheetRoot.getTemplateComposed
(XPathContext xctxt, int targetNode, QName mode, boolean quietConflictWarnings, DTM dtm) Get an "xsl:template" property by node match.StylesheetRoot.getTemplateComposed
(XPathContext xctxt, int targetNode, QName mode, int maxImportLevel, int endImportLevel, boolean quietConflictWarnings, DTM dtm) Get an "xsl:template" property by node match.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.StylesheetRoot.getWhiteSpaceInfo
(XPathContext support, int targetElement, DTM dtm) Get information about whether or not an element should strip whitespace.void
AVTPart.setXPathSupport
(XPathContext support) Set the XPath support.boolean
ElemTemplateElement.shouldStripWhiteSpace
(XPathContext support, Element targetElement) Get information about whether or not an element should strip whitespace.boolean
StylesheetRoot.shouldStripWhiteSpace
(XPathContext support, int targetElement) Get information about whether or not an element should strip whitespace.ElemForEach.sortNodes
(XPathContext xctxt, Vector keys, DTMIterator sourceNodes) Sort given nodesvoid
FuncDocument.warn
(XPathContext xctxt, String msg, Object[] args) Warn the user of a problem.void
FuncFormatNumb.warn
(XPathContext xctxt, String msg, Object[] args) Warn the user of a problem.Constructors in org.apache.xalan.templates with parameters of type XPathContextModifierConstructorDescriptionAVTPartXPath
(String val, PrefixResolver nsNode, XPathParser xpathProcessor, XPathFactory factory, XPathContext liaison) Construct a simple AVT part. -
Uses of XPathContext in org.apache.xalan.transformer
Methods in org.apache.xalan.transformer that return XPathContextModifier and TypeMethodDescriptionfinal XPathContext
TransformerImpl.getXPathContext()
Get the XPath context associated with this transformer.Methods in org.apache.xalan.transformer with parameters of type XPathContextModifier and TypeMethodDescriptionint
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.KeyManager.getNodeSetDTMByKey
(XPathContext xctxt, int doc, QName name, XMLString ref, PrefixResolver nscontext) Given a valid element key, return the corresponding node list.void
TransformerImpl.setXPathContext
(XPathContext xcontext) 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.Constructors in org.apache.xalan.transformer with parameters of type XPathContextModifierConstructorDescriptionKeyTable
(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. -
Uses of XPathContext in org.apache.xpath
Methods in org.apache.xpath that return XPathContextModifier and TypeMethodDescriptionCachedXPathAPI.getXPathContext()
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.XPathExpressionContext.getXPathContext()
Return the XPathContext associated with this XPathExpressionContext.Methods in org.apache.xpath with parameters of type XPathContextModifier and TypeMethodDescriptionint
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
NodeSetDTM.addNodeInDocOrder
(int node, XPathContext support) Add the node into a vector of nodes where it should occur in document order.void
NodeSet.addNodesInDocOrder
(NodeList nodelist, XPathContext support) Copy NodeList members into this nodelist, adding in document order.void
NodeSet.addNodesInDocOrder
(org.w3c.dom.traversal.NodeIterator iterator, XPathContext support) Copy NodeList members into this nodelist, adding in document order.void
NodeSetDTM.addNodesInDocOrder
(DTMIterator iterator, XPathContext support) Copy NodeList members into this nodelist, adding in document order.Expression.asIterator
(XPathContext xctxt, int contextNode) Given an select expression and a context, evaluate the XPath and return the resulting iterator.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
Expression.asNode
(XPathContext xctxt) Return the first node out of the nodeset, if this expression is a nodeset expression.boolean
Expression.bool
(XPathContext xctxt) 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.abstract XObject
Expression.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.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.Expression.execute
(XPathContext xctxt, int currentNode) Execute an expression in the XPath runtime context, and return the result of the expression.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.XPath.execute
(XPathContext xctxt, int contextNode, PrefixResolver namespaceContext) Given an expression and a context, evaluate the XPath and return the result.XPath.execute
(XPathContext xctxt, 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.VariableStack.getGlobalVariable
(XPathContext xctxt, int index) Get a global variable or parameter from the global stack frame.VariableStack.getGlobalVariable
(XPathContext xctxt, int index, boolean destructiveOK) Get a global variable or parameter from the global stack frame.VariableStack.getLocalVariable
(XPathContext xctxt, int index) Get a local variable or parameter in the current stack frame.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
(String base, String urlString, SourceLocator locator, XPathContext xctxt) Get the source tree from the a base URL and a URL string.int
SourceTreeManager.getSourceTree
(Source source, SourceLocator locator, XPathContext xctxt) Get the source tree from the input source.VariableStack.getVariableOrParam
(XPathContext xctxt, QName qname) Get a variable based on it's qualified name.double
Expression.num
(XPathContext xctxt) 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
WhitespaceStrippingElementMatcher.shouldStripWhiteSpace
(XPathContext support, Element targetElement) 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.Expression.xstr
(XPathContext xctxt) Cast result object to a string.Constructors in org.apache.xpath with parameters of type XPathContextModifierConstructorDescriptionNodeSetDTM
(NodeList nodeList, XPathContext xctxt) Create a NodeSetDTM, and copy the members of the given DTMIterator into it.NodeSetDTM
(org.w3c.dom.traversal.NodeIterator iterator, XPathContext xctxt) Create a NodeSetDTM, and copy the members of the given DTMIterator into it. -
Uses of XPathContext in org.apache.xpath.axes
Methods in org.apache.xpath.axes that return XPathContextModifier and TypeMethodDescriptionfinal XPathContext
LocPathIterator.getXPathContext()
The XPath execution context we are operating on.Methods in org.apache.xpath.axes with parameters of type XPathContextModifier and TypeMethodDescriptionshort
MatchPatternIterator.acceptNode
(int n, XPathContext xctxt) Test whether a specified node is visible in the logical view of a TreeWalker or NodeIterator.LocPathIterator.asIterator
(XPathContext xctxt, int contextNode) Given an select expression and a context, evaluate the XPath and return the resulting iterator.int
ChildIterator.asNode
(XPathContext xctxt) Return the first node out of the nodeset, if this expression is a nodeset expression.int
DescendantIterator.asNode
(XPathContext xctxt) Return the first node out of the nodeset, if this expression is a nodeset expression.int
LocPathIterator.asNode
(XPathContext xctxt) Return the first node out of the nodeset, if this expression is a nodeset expression.int
SelfIteratorNoPredicate.asNode
(XPathContext xctxt) Return the first node out of the nodeset, if this expression is a nodeset expression.boolean
LocPathIterator.bool
(XPathContext xctxt) Evaluate this operation directly to a boolean.LocPathIterator.execute
(XPathContext xctxt) 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, ContentHandler handler) Execute an expression in the XPath runtime context, and return the result of the expression.static XNodeSet
FilterExprIteratorSimple.executeFilterExpr
(int context, XPathContext xctxt, PrefixResolver prefixResolver, boolean isTopLevel, int stackFrame, Expression expr) Execute the expression.int
AxesWalker.getLastPos
(XPathContext xctxt) Get the index of the last node that can be itterated to.int
FilterExprWalker.getLastPos
(XPathContext xctxt) Get the index of the last node that can be itterated to.int
LocPathIterator.getLastPos
(XPathContext xctxt) abstract int
PredicatedNodeTest.getLastPos
(XPathContext xctxt) Get the index of the last node that can be itterated to.int
ReverseAxesWalker.getLastPos
(XPathContext xctxt) Get the number of nodes in this node list.int
SelfIteratorNoPredicate.getLastPos
(XPathContext xctxt) Get the index of the last node that can be itterated to.int
SubContextList.getLastPos
(XPathContext xctxt) Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.int
PredicatedNodeTest.getProximityPosition
(XPathContext xctxt) Get the current sub-context position.int
SubContextList.getProximityPosition
(XPathContext xctxt) Get the current sub-context position. -
Uses of XPathContext in org.apache.xpath.functions
Methods in org.apache.xpath.functions with parameters of type XPathContextModifier and TypeMethodDescriptionFuncBoolean.execute
(XPathContext xctxt) Execute the function.FuncCeiling.execute
(XPathContext xctxt) Execute the function.FuncConcat.execute
(XPathContext xctxt) Execute the function.FuncContains.execute
(XPathContext xctxt) Execute the function.FuncCount.execute
(XPathContext xctxt) Execute the function.FuncCurrent.execute
(XPathContext xctxt) Execute the function.FuncDoclocation.execute
(XPathContext xctxt) Execute the function.FuncExtElementAvailable.execute
(XPathContext xctxt) Execute the function.FuncExtFunction.execute
(XPathContext xctxt) Execute the function.FuncExtFunctionAvailable.execute
(XPathContext xctxt) Execute the function.FuncFalse.execute
(XPathContext xctxt) Execute the function.FuncFloor.execute
(XPathContext xctxt) Execute the function.FuncGenerateId.execute
(XPathContext xctxt) Execute the function.FuncId.execute
(XPathContext xctxt) Execute the function.FuncLang.execute
(XPathContext xctxt) Execute the function.FuncLast.execute
(XPathContext xctxt) Execute the function.FuncLocalPart.execute
(XPathContext xctxt) Execute the function.FuncNamespace.execute
(XPathContext xctxt) Execute the function.FuncNormalizeSpace.execute
(XPathContext xctxt) Execute the function.FuncNot.execute
(XPathContext xctxt) Execute the function.FuncNumber.execute
(XPathContext xctxt) Execute the function.FuncPosition.execute
(XPathContext xctxt) Execute the function.FuncQname.execute
(XPathContext xctxt) Execute the function.FuncRound.execute
(XPathContext xctxt) Execute the function.FuncStartsWith.execute
(XPathContext xctxt) Execute the function.FuncString.execute
(XPathContext xctxt) Execute the function.FuncStringLength.execute
(XPathContext xctxt) Execute the function.FuncSubstring.execute
(XPathContext xctxt) Execute the function.FuncSubstringAfter.execute
(XPathContext xctxt) Execute the function.FuncSubstringBefore.execute
(XPathContext xctxt) Execute the function.FuncSum.execute
(XPathContext xctxt) Execute the function.FuncSystemProperty.execute
(XPathContext xctxt) Execute the function.Function.execute
(XPathContext xctxt) Execute an XPath function object.FuncTranslate.execute
(XPathContext xctxt) Execute the function.FuncTrue.execute
(XPathContext xctxt) Execute the function.FuncUnparsedEntityURI.execute
(XPathContext xctxt) Execute the function.void
FuncNormalizeSpace.executeCharsToContentHandler
(XPathContext xctxt, ContentHandler handler) Execute an expression in the XPath runtime context, and return the result of the expression.int
FuncLast.getCountOfContextNodeList
(XPathContext xctxt) Get the position in the current context node list.int
FuncPosition.getPositionInContextNodeList
(XPathContext xctxt) Get the position in the current context node list. -
Uses of XPathContext in org.apache.xpath.jaxp
Methods in org.apache.xpath.jaxp with parameters of type XPathContextModifier and TypeMethodDescriptionJAXPVariableStack.getVariableOrParam
(XPathContext xctxt, QName qname) -
Uses of XPathContext in org.apache.xpath.objects
Methods in org.apache.xpath.objects with parameters of type XPathContextModifier and TypeMethodDescriptionXObject.castToType
(int t, XPathContext support) Cast object to type t.static XObject
XObject.create
(Object val, XPathContext xctxt) Create the right XObject based on the type of the object passed.static XObject
XObjectFactory.create
(Object val, XPathContext xctxt) Create the right XObject based on the type of the object passed.XObject.execute
(XPathContext xctxt) For support of literal objects in xpaths.XRTreeFragSelectWrapper.execute
(XPathContext xctxt) For support of literal objects in xpaths.double
XNumber.num
(XPathContext xctxt) Evaluate expression to a number.int
XNull.rtf
(XPathContext support) Cast result object to a result tree fragment.int
XObject.rtf
(XPathContext support) Cast result object to a result tree fragment.int
XString.rtf
(XPathContext support) Cast result object to a result tree fragment.XObject.rtree
(XPathContext support) Cast result object to a result tree fragment.Constructors in org.apache.xpath.objects with parameters of type XPathContextModifierConstructorDescriptionDTMXRTreeFrag
(int dtmIdentity, XPathContext xctxt) XNodeSetForDOM
(NodeList nodeList, XPathContext xctxt) XNodeSetForDOM
(org.w3c.dom.traversal.NodeIterator nodeIter, XPathContext xctxt) XRTreeFrag
(int root, XPathContext xctxt) Create an XRTreeFrag Object.XRTreeFrag
(int root, XPathContext xctxt, ExpressionNode parent) Create an XRTreeFrag Object. -
Uses of XPathContext in org.apache.xpath.operations
Methods in org.apache.xpath.operations with parameters of type XPathContextModifier and TypeMethodDescriptionboolean
And.bool
(XPathContext xctxt) Evaluate this operation directly to a boolean.boolean
Bool.bool
(XPathContext xctxt) Evaluate this operation directly to a boolean.boolean
Equals.bool
(XPathContext xctxt) Execute a binary operation by calling execute on each of the operands, and then calling the operate method on the derived class.boolean
Or.bool
(XPathContext xctxt) Evaluate this operation directly to a boolean.And.execute
(XPathContext xctxt) AND two expressions and return the boolean result.Operation.execute
(XPathContext xctxt) Execute a binary operation by calling execute on each of the operands, and then calling the operate method on the derived class.Or.execute
(XPathContext xctxt) OR two expressions and return the boolean result.UnaryOperation.execute
(XPathContext xctxt) Execute the operand and apply the unary operation to the result.Variable.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.Variable.execute
(XPathContext xctxt, boolean destructiveOK) Dereference the variable, and return the reference value.VariableSafeAbsRef.execute
(XPathContext xctxt, boolean destructiveOK) Dereference the variable, and return the reference value.double
Div.num
(XPathContext xctxt) Evaluate this operation directly to a double.double
Minus.num
(XPathContext xctxt) Evaluate this operation directly to a double.double
Mod.num
(XPathContext xctxt) Evaluate this operation directly to a double.double
Mult.num
(XPathContext xctxt) Evaluate this operation directly to a double.double
Neg.num
(XPathContext xctxt) Evaluate this operation directly to a double.double
Number.num
(XPathContext xctxt) Evaluate this operation directly to a double.double
Plus.num
(XPathContext xctxt) Evaluate this operation directly to a double. -
Uses of XPathContext in org.apache.xpath.patterns
Methods in org.apache.xpath.patterns with parameters of type XPathContextModifier and TypeMethodDescriptionContextMatchStepPattern.execute
(XPathContext xctxt) Execute this pattern step, including predicates.FunctionPattern.execute
(XPathContext xctxt) Test a node to see if it matches the given node test.FunctionPattern.execute
(XPathContext xctxt, int context) Test a node to see if it matches the given node test.FunctionPattern.execute
(XPathContext xctxt, int context, DTM dtm, int expType) Test a node to see if it matches the given node test.NodeTest.execute
(XPathContext xctxt) Test the current node to see if it matches the given node test.NodeTest.execute
(XPathContext xctxt, int context) Tell what the test score is for the given node.NodeTest.execute
(XPathContext xctxt, int context, DTM dtm, int expType) Tell what the test score is for the given node.StepPattern.execute
(XPathContext xctxt) Execute this pattern step, including predicates.StepPattern.execute
(XPathContext xctxt, int currentNode) Execute this pattern step, including predicates.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.UnionPattern.execute
(XPathContext xctxt) Test a node to see if it matches any of the patterns in the union.ContextMatchStepPattern.executeRelativePathPattern
(XPathContext xctxt, StepPattern prevStep) Execute the match pattern step relative to another step.int
StepPattern.getLastPos
(XPathContext xctxt) 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
StepPattern.getProximityPosition
(XPathContext xctxt) Get the proximity position index of the current node based on this node test.