public class TraceClause extends Clause
COUNT, FOR, GROUPBYCLAUSE, LET, ORDERBYCLAUSE, TRACE, WHERE, WINDOW
Constructor and Description |
---|
TraceClause(Clause target,
NamespaceResolver nsResolver)
Create a traceClause
|
Modifier and Type | Method and Description |
---|---|
void |
addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet)
Collect information about the navigation paths followed by this clause, for document projection purposes
|
TraceClause |
copy(FLWORExpression flwor,
RebindingMap rebindings)
Create a copy of this clause
|
void |
explain(ExpressionPresenter out)
Diagnostic print of expression structure.
|
int |
getClauseKey()
Get a keyword identifying what kind of clause this is
|
NamespaceResolver |
getNamespaceResolver()
Get the namespace bindings from the static context of the clause
|
TuplePull |
getPullStream(TuplePull base,
XPathContext context)
Get a tuple stream that implements the functionality of this clause, taking its
input from another tuple stream which this clause modifies
|
TuplePush |
getPushStream(TuplePush destination,
XPathContext context)
Get a push-mode tuple stream that implements the functionality of this clause, supplying its
output to another tuple stream
|
void |
processOperands(OperandProcessor processor)
Process the subexpressions of this clause
|
void |
setNamespaceResolver(NamespaceResolver nsResolver)
Set the namespace bindings from the static context of the clause
|
java.lang.String |
toString() |
containsNonInlineableVariableReference, gatherVariableReferences, getConfiguration, getLocation, getPackageData, getRangeVariables, isRepeated, optimize, refineVariableType, setLocation, setPackageData, setRepeated, toShortString, typeCheck
public TraceClause(Clause target, NamespaceResolver nsResolver)
target
- the clause whose evaluation is being tracedpublic NamespaceResolver getNamespaceResolver()
public void setNamespaceResolver(NamespaceResolver nsResolver)
nsResolver
- a namespace resolver that reflects the in scope namespaces of the clausepublic int getClauseKey()
Clause
getClauseKey
in class Clause
public TraceClause copy(FLWORExpression flwor, RebindingMap rebindings)
Clause
public TuplePull getPullStream(TuplePull base, XPathContext context)
getPullStream
in class Clause
base
- the input tuple streamcontext
- the dynamic evaluation contextpublic TuplePush getPushStream(TuplePush destination, XPathContext context)
getPushStream
in class Clause
destination
- the output tuple streamcontext
- the dynamic evaluation contextpublic void processOperands(OperandProcessor processor) throws XPathException
processOperands
in class Clause
processor
- the expression processor used to process the subexpressionsXPathException
- if any error is detectedpublic void addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet)
Clause
addToPathMap
in class Clause
pathMap
- the path map in which the data is to be collectedpathMapNodeSet
- the path map node set representing the paths to the context itempublic void explain(ExpressionPresenter out) throws XPathException
explain
in class Clause
out
- the expression presenter used to display the structureXPathException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.