public class TraceCodeInjector extends java.lang.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)
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)
injectClause
in interface CodeInjector
target
- the clause whose evaluation is to be traced (or otherwise monitored)env
- the static context of the containing FLWOR expressionCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.