public class TraceCodeInjector extends Object implements CodeInjector
Constructor and Description |
---|
TraceCodeInjector() |
Modifier and Type | Method and Description |
---|---|
Expression |
inject(Expression exp,
StaticContext env,
int construct,
StructuredQName qName)
If tracing, wrap an expression in a trace instruction
|
Clause |
injectClause(Clause target,
StaticContext env,
Container container)
If tracing, add a clause to a FLWOR expression that can be used to monitor requests for
tuples to be processed
|
public Expression inject(Expression exp, StaticContext env, int construct, StructuredQName qName)
inject
in interface CodeInjector
exp
- the expression to be wrappedenv
- the static contextconstruct
- integer constant identifying the kind of constructqName
- the name of the construct (if applicable)public Clause injectClause(Clause target, StaticContext env, Container container)
injectClause
in interface CodeInjector
target
- the clause whose evaluation is to be traced (or otherwise monitored)env
- the static context of the containing FLWOR expressioncontainer
- the container of the containing FLWOR ExpressionCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.