Package net.sf.saxon.expr.parser
Interface CodeInjector
-
- All Known Implementing Classes:
TimingCodeInjector,TraceCodeInjector,XSLTTraceCodeInjector
public interface CodeInjectorA code injector can be used to add code to the expression tree (for example, diagnostic tracing code) during the process of parsing and tree construction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Expressioninject(Expression exp, StaticContext env, int construct, StructuredQName qName)If tracing, wrap an expression in a trace instructionClauseinjectClause(Clause target, StaticContext env, Container container)Insert a tracing clause into a FLWOR expression
-
-
-
Method Detail
-
inject
Expression inject(Expression exp, StaticContext env, int construct, StructuredQName qName)
If tracing, wrap an expression in a trace instruction- 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:
- a replacement for the original expression (or the original expression unchanged)
-
injectClause
Clause injectClause(Clause target, StaticContext env, Container container)
Insert a tracing clause into a FLWOR expression
-
-