Lines Matching defs:expression
46 * If a request is made to evaluate the expression in the absence
55 * If the expression contains a variable reference, its value will be found through the {@link XPathVariableResolver}
65 * If the expression contains a function reference, the function will be found through the {@link XPathFunctionResolver}
74 * QNames in the expression are resolved against the XPath namespace context
81 * This result of evaluating an expression is converted to an instance of the desired return type.
179 * <p>Compile an XPath expression for later evaluation.</p>
181 * <p>If <code>expression</code> contains any {@link XPathFunction}s,
187 * <p>If <code>expression</code> contains any variables, the
191 * <p>If <code>expression</code> is <code>null</code>, a <code>NullPointerException</code> is thrown.</p>
193 * @param expression The XPath expression.
195 * @return Compiled XPath expression.
197 * @throws XPathExpressionException If <code>expression</code> cannot be compiled.
198 * @throws NullPointerException If <code>expression</code> is <code>null</code>.
200 public XPathExpression compile(String expression)
204 * <p>Evaluate an <code>XPath</code> expression in the specified context and return the result as the specified type.</p>
220 * If <code>expression</code> or <code>returnType</code> is <code>null</code>, then a
223 * @param expression The XPath expression.
227 * @return Result of evaluating an XPath expression as an <code>Object</code> of <code>returnType</code>.
229 * @throws XPathExpressionException If <code>expression</code> cannot be evaluated.
231 * @throws NullPointerException If <code>expression</code> or <code>returnType</code> is <code>null</code>.
233 public Object evaluate(String expression, Object item, QName returnType)
237 * <p>Evaluate an XPath expression in the specified context and return the result as a <code>String</code>.</p>
239 * <p>This method calls {@link #evaluate(String expression, Object item, QName returnType)} with a <code>returnType</code> of
248 * If <code>expression</code> is <code>null</code>, then a <code>NullPointerException</code> is thrown.</p>
250 * @param expression The XPath expression.
253 * @return The <code>String</code> that is the result of evaluating the expression and
256 * @throws XPathExpressionException If <code>expression</code> cannot be evaluated.
257 * @throws NullPointerException If <code>expression</code> is <code>null</code>.
259 public String evaluate(String expression, Object item)
263 * <p>Evaluate an XPath expression in the context of the specified <code>InputSource</code>
267 * {@link #evaluate(String expression, Object item, QName returnType)} on the resulting document object.</p>
275 * <p>If <code>expression</code>, <code>source</code> or <code>returnType</code> is <code>null</code>,
278 * @param expression The XPath expression.
282 * @return The <code>Object</code> that encapsulates the result of evaluating the expression.
284 * @throws XPathExpressionException If expression cannot be evaluated.
286 * @throws NullPointerException If <code>expression</code>, <code>source</code> or <code>returnType</code>
290 String expression,
296 * <p>Evaluate an XPath expression in the context of the specified <code>InputSource</code>
299 * <p>This method calls {@link #evaluate(String expression, InputSource source, QName returnType)} with a
305 * <p>If <code>expression</code> or <code>source</code> is <code>null</code>,
308 * @param expression The XPath expression.
311 * @return The <code>String</code> that is the result of evaluating the expression and
314 * @throws XPathExpressionException If expression cannot be evaluated.
315 * @throws NullPointerException If <code>expression</code> or <code>source</code> is <code>null</code>.
317 public String evaluate(String expression, InputSource source)