Package client.net.sf.saxon.ce.expr

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


    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

        }
        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

TOP

Related Classes of client.net.sf.saxon.ce.expr.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.