Uses of Class
org.loboevolution.apache.xpath.XPathContext
Package
Description
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.loboevolution.apache.xpath
Modifier and TypeMethodDescriptionvoid
NodeSetDTM.addNodeInDocOrder
(int node, boolean test, XPathContext support) Add the node into a vector of nodes where it should occur in document order.void
NodeSetDTM.addNodeInDocOrder
(int node, XPathContext support) Add the node into a vector of nodes where it should occur in document order.Expression.asIterator
(XPathContext xctxt, int contextNode) Given an select expression and a context, evaluate the XPath and return the resulting iterator.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, 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.double
Expression.num
(XPathContext xctxt) Evaluate expression to a number. -
Uses of XPathContext in org.loboevolution.apache.xpath.axes
Modifier and TypeFieldDescriptionprotected XPathContext
LocPathIterator.m_execContext
The XPathContext reference, needed for execution of many operations.Modifier and TypeMethodDescriptionfinal XPathContext
LocPathIterator.getXPathContext()
The XPath execution context we are operating on.Modifier and TypeMethodDescriptionLocPathIterator.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 expression to a boolean.LocPathIterator.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.static XNodeSet
FilterExprWalker.executeFilterExpr
(int context, XPathContext xctxt, PrefixResolver prefixResolver, boolean isTopLevel, Expression expr) Execute the expression.int
AxesWalker.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
FilterExprWalker.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
LocPathIterator.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.abstract int
PredicatedNodeTest.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
ReverseAxesWalker.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
SelfIteratorNoPredicate.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
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.loboevolution.apache.xpath.functions
Modifier and TypeMethodDescriptionFuncBoolean.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncCeiling.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncConcat.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncContains.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncCount.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncFalse.execute
(XPathContext xctxt) Execute the function.FuncFloor.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncId.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncLang.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncLast.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncLocalPart.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncNamespace.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncNormalizeSpace.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncNot.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncNumber.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncPosition.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncQname.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncRound.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncStartsWith.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncString.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncStringLength.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncSubstring.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncSubstringAfter.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncSubstringBefore.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncSum.execute
(XPathContext xctxt) Execute the function.Function.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncTranslate.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FuncTrue.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.protected int
FunctionDef1Arg.getArg0AsNode
(XPathContext xctxt) Execute the first argument expression that is expected to return a nodeset.protected double
FunctionDef1Arg.getArg0AsNumber
(XPathContext xctxt) Execute the first argument expression that is expected to return a number.protected XString
FunctionDef1Arg.getArg0AsString
(XPathContext xctxt) Execute the first argument expression that is expected to return a string.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.loboevolution.apache.xpath.objects
Modifier and TypeMethodDescriptionXObject.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.double
XNumber.num
(XPathContext xctxt) Evaluate expression to a number. -
Uses of XPathContext in org.loboevolution.apache.xpath.operations
Modifier and TypeMethodDescriptionboolean
And.bool
(XPathContext xctxt) Evaluate expression to a boolean.boolean
Bool.bool
(XPathContext xctxt) Evaluate expression to a boolean.boolean
Equals.bool
(XPathContext xctxt) Evaluate expression to a boolean.boolean
Or.bool
(XPathContext xctxt) Evaluate expression to a boolean.And.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.Operation.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.Or.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.UnaryOperation.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.double
Div.num
(XPathContext xctxt) Evaluate expression to a number.double
Minus.num
(XPathContext xctxt) Evaluate expression to a number.double
Mod.num
(XPathContext xctxt) Evaluate expression to a number.double
Mult.num
(XPathContext xctxt) Evaluate expression to a number.double
Neg.num
(XPathContext xctxt) Evaluate expression to a number.double
Number.num
(XPathContext xctxt) Evaluate expression to a number.double
Plus.num
(XPathContext xctxt) Evaluate expression to a number. -
Uses of XPathContext in org.loboevolution.apache.xpath.patterns
Modifier and TypeMethodDescriptionContextMatchStepPattern.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FunctionPattern.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.FunctionPattern.execute
(XPathContext xctxt, int ctx) Execute an expression in the XPath runtime context, and return the result of the expression.FunctionPattern.execute
(XPathContext xctxt, int ctx, DTM dtm, int expType) Execute an expression in the XPath runtime context, and return the result of the expression.NodeTest.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.NodeTest.execute
(XPathContext xctxt, int context) Execute an expression in the XPath runtime context, and return the result of the expression.NodeTest.execute
(XPathContext xctxt, int context, DTM dtm, int expType) Execute an expression in the XPath runtime context, and return the result of the expression.StepPattern.execute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.StepPattern.execute
(XPathContext xctxt, int currentNode) Execute an expression in the XPath runtime context, and return the result of the expression.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) Execute an expression in the XPath runtime context, and return the result of the expression.protected final boolean
StepPattern.executePredicates
(XPathContext xctxt, DTM dtm, int currentNode) Execute the predicates on this step to determine if the current node should be filtered or accepted.protected final XObject
StepPattern.executeRelativePathPattern
(XPathContext xctxt, DTM dtm, int currentNode) Execute the match pattern step relative to another step.int
StepPattern.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
StepPattern.getProximityPosition
(XPathContext xctxt) Get the current sub-context position.