Package net.sf.saxon.trace
Class XSLTTraceCodeInjector
- java.lang.Object
-
- net.sf.saxon.trace.TraceCodeInjector
-
- net.sf.saxon.trace.XSLTTraceCodeInjector
-
- All Implemented Interfaces:
CodeInjector
public class XSLTTraceCodeInjector extends TraceCodeInjector
A code injector that wraps every expression (other than a literal) in a TraceExpression, which causes a TraceListener to be notified when the expression is evaluated
-
-
Constructor Summary
Constructors Constructor Description XSLTTraceCodeInjector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
inject(Expression exp, StaticContext env, int construct, StructuredQName qName)
If tracing, wrap an expression in a trace instruction-
Methods inherited from class net.sf.saxon.trace.TraceCodeInjector
injectClause
-
-
-
-
Method Detail
-
inject
public Expression inject(Expression exp, StaticContext env, int construct, StructuredQName qName)
If tracing, wrap an expression in a trace instruction- Specified by:
inject
in interfaceCodeInjector
- Overrides:
inject
in classTraceCodeInjector
- Parameters:
exp
- the expression to be wrappedenv
- the static contextconstruct
- integer constant identifying the kind of constructqName
- the name of the construct (if applicable)- Returns:
- the expression that does the tracing
-
-