/** * Get the value of this variable in a given context. * * @param c the XPathContext which contains the relevant variable bindings * @return the value of the variable, if it is defined * @throws XPathException if the variable is undefined */ public SequenceIterator iterate(XPathContext c) throws XPathException { try { ValueRepresentation actual = evaluateVariable(c); return Value.getIterator(actual); } catch (XPathException err) { err.maybeSetLocation(this); throw err; } catch (AssertionError err) { String msg = err.getMessage() + " Variable " + getDisplayName() + " at " + getLineNumber() + " of " + getSystemId(); throw new AssertionError(msg); } }
/** * Get the value of this variable in a given context. * * @param c the XPathContext which contains the relevant variable bindings * @return the value of the variable, if it is defined * @throws XPathException if the variable is undefined */ public SequenceIterator iterate(XPathContext c) throws XPathException { try { ValueRepresentation actual = evaluateVariable(c); return Value.getIterator(actual); } catch (XPathException err) { err.maybeSetLocation(this); throw err; } catch (AssertionError err) { String msg = err.getMessage() + " Variable " + getDisplayName() + " at " + getLineNumber() + " of " + getSystemId(); throw new AssertionError(msg); } }
/** * Get the value of this variable in a given context. * * @param c the XPathContext which contains the relevant variable bindings * @return the value of the variable, if it is defined * @throws XPathException if the variable is undefined */ public SequenceIterator iterate(XPathContext c) throws XPathException { try { ValueRepresentation actual = evaluateVariable(c); return Value.getIterator(actual); } catch (XPathException err) { err.maybeSetLocation(this); throw err; } catch (AssertionError err) { String msg = err.getMessage() + " Variable " + getDisplayName() + " at " + getLineNumber() + " of " + getSystemId(); throw new AssertionError(msg); } }