Package client.net.sf.saxon.ce.lib

Examples of client.net.sf.saxon.ce.lib.TraceListener


        c2.setCurrentIterator(groupIterator);
        c2.setCurrentGroupIterator(groupIterator);
        c2.setCurrentTemplateRule(null);
       
        if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
          TraceListener listener = LogController.getTraceListener();
          while (true) {
              Item item = groupIterator.next();
              if (item == null) {
                  break;
              }
              listener.startCurrentItem(item);
              action.process(c2);
              listener.endCurrentItem(item);
          }
        } else {
          while (true) {
              Item item = groupIterator.next();
              if (item == null) {
View Full Code Here


     */
    public TailCall processLeavingTail(XPathContext context) throws XPathException {
        Controller controller = context.getController();
        assert controller != null;
        if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
          TraceListener listener = LogController.getTraceListener();
        listener.enter(getInstructionInfo(), context);
        child.process(context);
        listener.leave(getInstructionInfo());
       
      } else {
        child.process(context);
      }
        return null;
View Full Code Here

        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

        c2.setCurrentIterator(iter);
        c2.setCurrentTemplateRule(null);

        if (containsTailCall) {
            if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
                TraceListener listener = LogController.getTraceListener();
                Item item = iter.next();
                if (item == null) {
                    return null;
                }
                listener.startCurrentItem(item);
                TailCall tc = ((TailCallReturner)action).processLeavingTail(c2);
                listener.endCurrentItem(item);
                return tc;
             
            } else {
              Item item = iter.next();
              if (item == null) {
                  return null;
              }
            }
            return ((TailCallReturner)action).processLeavingTail(c2);
        } else {
            if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
                TraceListener listener = LogController.getTraceListener();
                while(true) {
                    Item item = iter.next();
                    if (item == null) {
                        break;
                    }
                    listener.startCurrentItem(item);
                    action.process(c2);
                    listener.endCurrentItem(item);
                }
            } else {
              while(true) {
                  Item item = iter.next();
                  if (item == null) {
View Full Code Here

TOP

Related Classes of client.net.sf.saxon.ce.lib.TraceListener

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.