Package net.sf.saxon.instruct

Examples of net.sf.saxon.instruct.TraceExpression


     * If tracing, wrap an instruction in a trace instruction
     */

    protected Expression makeTracer(int startOffset, Expression exp, int construct, int objectNameCode) {
        if (env.getConfiguration().getTraceListener() != null) {
            TraceExpression trace = new TraceExpression(exp);
            long lc = t.getLineAndColumn(startOffset);
            trace.setLineNumber((int)(lc>>32));
            trace.setColumnNumber((int)(lc&0x7fffffff));
            trace.setSystemId(env.getSystemId());
            trace.setNamespaceResolver(env.getNamespaceResolver());
            trace.setConstructType(construct);
            trace.setObjectNameCode(objectNameCode);
            return trace;
        } else {
            return exp;
        }
    }
View Full Code Here

TOP

Related Classes of net.sf.saxon.instruct.TraceExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.