net.sf.saxon.trace
Class TimingCodeInjector
java.lang.Object
net.sf.saxon.trace.TraceCodeInjector
net.sf.saxon.trace.TimingCodeInjector
- All Implemented Interfaces:
- CodeInjector
public class TimingCodeInjector
- extends TraceCodeInjector
A code injector that wraps the body of a template or function in a TraceExpression, which causes
the TimingTraceListener to be notified at the start and end of the function/template evaluation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimingCodeInjector
public TimingCodeInjector()
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 interface CodeInjector
- Overrides:
inject
in class TraceCodeInjector
- 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
Copyright (c) 2004-2011 Saxonica Limited. All rights reserved.