|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.expr.Expression
net.sf.saxon.expr.FunctionCall
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.Trace
public class Trace
This class supports the XPath 2.0 function trace(). The value is traced to the System.err stream, unless a TraceListener is in use, in which case the information is sent to the TraceListener
| Nested Class Summary | |
|---|---|
class |
Trace.TracingIterator
Tracing Iterator class |
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.expr.Expression |
|---|
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
| 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 |
Expression |
simplify(StaticContext env)
Simplify the function call. |
| Methods inherited from class net.sf.saxon.functions.SystemFunction |
|---|
checkArguments, display, getDetails, getErrorCodeForTypeErrors, getItemType, main, makeSystemFunction, optimize, setDetails |
| Methods inherited from class net.sf.saxon.expr.FunctionCall |
|---|
getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, promote, replaceSubExpression, setArguments, setFunctionNameCode, typeCheck |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Trace()
| Method Detail |
|---|
public Expression simplify(StaticContext env)
throws XPathException
simplify in class FunctionCallXPathException - if an error is discovered during expression
rewritingpublic Expression preEvaluate(StaticContext env)
preEvaluate in class FunctionCallpublic int computeSpecialProperties()
computeSpecialProperties in class SystemFunctionpublic int computeCardinality()
computeCardinality in class SystemFunction
public Item evaluateItem(XPathContext context)
throws XPathException
evaluateItem in interface EvaluableItemevaluateItem in class Expressioncontext - 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 SequenceIterableiterate in class Expressioncontext - 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 | ||||||