public class TimingCodeInjector extends TraceCodeInjector
Constructor and Description |
---|
TimingCodeInjector() |
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
inject
in class TraceCodeInjector
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)
TraceCodeInjector
injectClause
in interface CodeInjector
injectClause
in class TraceCodeInjector
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-2014 Saxonica Limited. All rights reserved.