@Override public String toString() { if (original != null) { return original.toString(); } else { return "error(\"" + message + "\")"; } }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax */ public String toString() { return "(" + start.toString() + "/" + step.toString() + ")"; }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax */ public String toString() { return "(" + start.toString() + "/" + step.toString() + ")"; }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax */ public String toString() { return "(" + start.toString() + "[" + filter.toString() + "])"; }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax */ public String toString() { return "??(" + operand.toString() + ")"; }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax */ public String toString() { return "(" + start.toString() + "/" + step.toString() + ")"; }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax */ public String toString() { String className = getClass().getName(); String simpleName = className.substring(className.lastIndexOf(".")+1); return simpleName + "(" + operand.toString() + ")"; // TODO:JDK1.5 - use getClass().getSimpleName() }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax * * @return a representation of the expression as a string */ public String toString() { return "consume(" + getBaseExpression().toString() + ")"; }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax */ @Override public String toString() { return "data(" + getBaseExpression().toString() + ")"; }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax */ public String toString() { return targetType.getEQName() + "(" + getBaseExpression().toString() + ")"; }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax */ public String toString() { return getBaseExpression().toString() + " castable as " + getTargetType().getEQName(); }
/** * Represent the expression as a string. The resulting string will be a valid XPath 3.0 expression * with no dependencies on namespace bindings. * * @return the expression as a string in XPath 3.0 syntax */ public String toString() { return getTargetType().getEQName() + "(" + getBaseExpression().toString() + ")"; }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax */ @Override public String toString() { String occ = Cardinality.getOccurrenceIndicator(targetCardinality); return "(" + getBaseExpression().toString() + " instance of " + targetType.toString() + occ + ")"; }
@Override public String toString() { return "<" + elementName.getStructuredQName().getDisplayName() + " {" + getContentExpression().toString() + "}/>"; }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax */ @Override public String toString() { String occ = Cardinality.getOccurrenceIndicator(targetCardinality); return "(" + getBaseExpression().toString() + " instance of " + targetType.toString() + occ + ")"; }
public String toString() { FastStringBuffer fsb = new FastStringBuffer(FastStringBuffer.C64); fsb.append("where "); fsb.append(getPredicate().toString()); return fsb.toString(); } }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax * * @return a representation of the expression as a string */ public String toString() { return "for $" + getVariableEQName() + " in " + (getSequence() == null ? "(...)" : getSequence().toString()) + " return " + (getAction() == null ? "(...)" : ExpressionTool.parenthesize(getAction())); }
/** * The toString() method for an expression attempts to give a representation of the expression * in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. * In the case of XSLT instructions, the toString() method gives an abstracted view of the syntax * * @return a representation of the expression as a string */ public String toString() { return "for $" + getVariableEQName() + " in " + (getSequence() == null ? "(...)" : getSequence().toString()) + " return " + (getAction() == null ? "(...)" : ExpressionTool.parenthesize(getAction())); }
public String toString() { FastStringBuffer fsb = new FastStringBuffer(FastStringBuffer.C64); fsb.append("let $"); fsb.append(rangeVariable.getVariableQName().getDisplayName()); fsb.append(" := "); fsb.append(getSequence().toString()); return fsb.toString(); } }
public static void trace(Configuration config, String message, Expression exp) { if (config.getBooleanProperty(Feature.TRACE_OPTIMIZER_DECISIONS)) { Logger err = config.getLogger(); err.info("OPT : At line " + exp.getLocation().getLineNumber() + " of " + exp.getLocation().getSystemId()); err.info("OPT : " + message); err.info("OPT : Expression after rewrite: " + exp.toString()); exp.verifyParentPointers(); } }