Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sf.saxon.expr.parser
Interface CodeInjector

All Known Implementing Classes:
  TimingCodeInjector, TraceCodeInjector, XSLTTraceCodeInjector

    public interface CodeInjector

A 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
`Expression` | `inject(Expression exp, StaticContext env, int construct, StructuredQName qName)` If tracing, wrap an expression in a trace instruction

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 wrapped
    `env` - the static context
    `construct` - integer constant identifying the kind of construct
    `qName` - the name of the construct (if applicable)
  Returns:
    a replacement for the original expression (or the original expression unchanged)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 2004-2011 Saxonica Limited. All rights reserved.