Examples of TraceExpression


Examples of client.net.sf.saxon.ce.expr.TraceExpression

                    compileError(err);
                }
                att.setSourceLocator(this);
                Expression exp = att;
                if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
                    TraceExpression trace = new TraceExpression(exp);
                    trace.setNamespaceResolver(this);
                    trace.setConstructType(Location.LITERAL_RESULT_ATTRIBUTE);
                    trace.setSourceLocator(this);
                    trace.setObjectName(this.getNamePool().getStructuredQName(attributeNames[i]));
                    exp = trace;
                }

                if (content == null) {
                    content = exp;
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.TraceExpression

    public Expression inject(Expression exp, /*@NotNull*/ StaticContext env, int construct, StructuredQName qName) {
        if (exp instanceof Literal) {
            return exp;
        }
        TraceExpression trace = new TraceExpression(exp);
        //ExpressionTool.copyLocationInfo(exp, trace);
        trace.setNamespaceResolver(env.getNamespaceResolver());
        trace.setConstructType(construct);
        trace.setObjectName(qName);
        ArrayList<String[]> properties = exp.getTraceProperties();
        if (properties != null) {
          for (String[] property: properties) {
            trace.setProperty(property[0], property[1]);
          }
        }
        //trace.setObjectNameCode(objectNameCode);
        return trace;
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.TraceExpression

        }
        return val;
    }

    private void notifyListener(String label, Value val, XPathContext context) {
        TraceExpression info = new TraceExpression(this);
        info.setConstructType(Location.TRACE_CALL);
        info.setSourceLocator(this.getSourceLocator());
        info.setProperty("label", label);
        info.setProperty("value", val);
        TraceListener listener = LogController.getTraceListener();
        listener.enter(info, context);
        listener.leave(info);
    }
View Full Code Here

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
Copyright © 2018 www.massapi.com. 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.