/** * Export this rule as part of an exported stylesheet * * @param presenter the output handler */ public void export(ExpressionPresenter presenter) { presenter.startElement("strip.all"); presenter.endElement(); } }
protected int level(InstructionInfo info) { int construct = info.getConstructType(); if (construct == StandardNames.XSL_FUNCTION ||construct == StandardNames.XSL_TEMPLATE) { return 1; } if (info instanceof Instruction) { return 2; } else { return 3; } }
/** * Get the associated CodeInjector to be used at compile time to generate the tracing calls */ public CodeInjector getCodeInjector() { return new TraceCodeInjector(); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. */ public void export(ExpressionPresenter destination) throws XPathException { destination.startElement("supplied", this); destination.emitAttribute("slot", slotNumber + ""); destination.endElement(); }
/** * Start a child element in the output * * @param name the name of the child element */ public void startSubsidiaryElement(String name) { startElement(name); }
/** * End a child element in the output */ public void endSubsidiaryElement() { endElement(); }
/** * Removes the specified trace listener so that the listener will no longer * receive trace events. * * @param trace the trace listener. * @since 8.4 */ public void removeTraceListener(TraceListener trace) { traceListener = TraceEventMulticaster.remove(traceListener, trace); }
/** * Removes the old trace-listener from trace-listener-l and * returns the resulting multicast listener. * * @param l trace-listener-l * @param oldl the trace-listener being removed */ public static TraceListener remove(TraceListener l, TraceListener oldl) { return (TraceListener) removeInternal(l, oldl); }
/** * Adds trace-listener-a with trace-listener-b and * returns the resulting multicast listener. * * @param a trace-listener-a * @param b trace-listener-b */ public static TraceListener add(TraceListener a, TraceListener b) { return (TraceListener) addInternal(a, b); }
/** * Get the trace element tagname to be used for a particular construct. Return null for * trace events that are ignored by this trace listener. */ /*@Nullable*/ protected String tag(int construct) { return tagName(construct); }
/** * Generate Javascript code to test if a name matches the test. * * @return JS code as a string. The generated code will be used * as the body of a JS function in which the argument name "q" is an * XdmQName object holding the name. The XdmQName object has properties * uri and local. * @param targetVersion the version of Saxon-JS being targeted */ public String generateJavaScriptNameTest(int targetVersion) { return "q.uri==='" + ExpressionPresenter.jsEscape(uri) + "'"; }
/** * Make an ExpressionPresenter that writes indented output to a specified output stream, * with checksumming * * @param config the Saxon configuration * @param out the output destination * @param checksum true if a checksum is to be written at the end of the file */ public ExpressionPresenter(Configuration config, StreamResult out, boolean checksum) { init(config, out, checksum); }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. * * @param out the expression presenter used to display the structure */ @Override public void explain(ExpressionPresenter out) throws XPathException { out.startElement("trace"); out.endElement(); }
/** * Removes the specified trace listener so that the listener will no longer * receive trace events. * * @param trace the trace listener. * @since 8.4 */ public void removeTraceListener(TraceListener trace) { // e.g. traceListener = TraceEventMulticaster.remove(traceListener, trace); }
/** * Export this rule as part of an exported stylesheet * * @param presenter the output handler */ public void export(ExpressionPresenter presenter) { presenter.startElement("strip.ignorable"); presenter.endElement(); } }
/** * Diagnostic print of expression structure. The abstract expression tree * is written to the supplied output destination. * * @param out the expression presenter used to display the structure */ @Override public void export(ExpressionPresenter out) throws XPathException { out.startElement("currentGroup"); out.endElement(); }
@Override public void export(ExpressionPresenter presenter) { presenter.startElement("p.any"); presenter.endElement(); }
@Override public void export(ExpressionPresenter presenter) throws XPathException { presenter.startElement("p.streamingArg"); presenter.endElement(); }
public void export(ExpressionPresenter out) throws XPathException { out.startElement("break", this); out.endElement(); } }
/** * Export this rule as part of an exported stylesheet * * @param presenter the output handler */ public void export(ExpressionPresenter presenter) { presenter.startElement("strip.none"); presenter.endElement(); } }