|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.sf.saxon.expr.ComputedExpression
|
+--net.sf.saxon.expr.FunctionCall
|
+--net.sf.saxon.functions.SystemFunction
|
+--net.sf.saxon.functions.Trace
This class supports the XPath 2.0 function trace(). At present the value is simply traced to the System.err stream
| Nested Class Summary | |
class |
Trace.TracingIterator
Tracing Iterator class |
| Field Summary |
| Fields inherited from class net.sf.saxon.functions.SystemFunction |
operation |
| Fields inherited from class net.sf.saxon.expr.FunctionCall |
argument |
| Fields inherited from class net.sf.saxon.expr.ComputedExpression |
lineNumber, NO_ARGUMENTS, staticProperties |
| Constructor Summary | |
Trace()
|
|
| Method Summary | |
int |
computeCardinality()
Get the static cardinality |
int |
computeSpecialProperties()
Get the static properties of this expression (other than its type). |
Item |
evaluateItem(XPathContext context)
Evaluate the function |
SequenceIterator |
iterate(XPathContext context)
Iterate over the results of the function |
Expression |
preEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing |
| Methods inherited from class net.sf.saxon.functions.SystemFunction |
addContextDocumentArgument, checkArguments, display, getDetails, getItemType, getName, getRequiredType, main, makeSystemFunction, useContextItemAsDefault |
| Methods inherited from class net.sf.saxon.expr.FunctionCall |
analyze, checkArgumentCount, getNumberOfArguments, getSubExpressions, promote, setArguments, simplify, simplifyArguments |
| Methods inherited from class net.sf.saxon.expr.ComputedExpression |
computeDependencies, computeStaticProperties, dynamicError, effectiveBooleanValue, evaluateAsString, getCardinality, getDependencies, getIntrinsicDependencies, getLineNumber, getSourceLocator, getSpecialProperties, markTailFunctionCalls, setLineNumber, typeError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Trace()
| Method Detail |
public Expression preEvaluate(StaticContext env)
preEvaluate in class FunctionCallpublic int computeSpecialProperties()
computeSpecialProperties in class ComputedExpressionpublic int computeCardinality()
computeCardinality in class SystemFunction
public Item evaluateItem(XPathContext context)
throws XPathException
evaluateItem in interface ExpressionevaluateItem in class ComputedExpressioncontext - The context in which the expression is to be evaluated
XPathException - if any dynamic error occurs evaluating the
expression
public SequenceIterator iterate(XPathContext context)
throws XPathException
iterate in interface Expressioniterate in class ComputedExpressioncontext - supplies the context for evaluation
XPathException - if any dynamic error occurs evaluating the
expression
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||