Package org.exolab.adaptx.xpath.engine
Class ErrorExpr
java.lang.Object
org.exolab.adaptx.xpath.engine.ErrorExpr
- All Implemented Interfaces:
XPathExpression
Simple interface for XSL Expressions
- Version:
- $Revision: 3737 $ $Id: ErrorExpr.java 3737 2003-05-13 07:59:57Z kvisco $
- Author:
- Keith Visco
-
Field Summary
Fields inherited from interface org.exolab.adaptx.xpath.XPathExpression
BOOLEAN, ERROR, FILTER_EXPR, LOCATION_PATH, NODE_TEST, NUMBER, PATH_EXPR, PRIMARY, STEP, STRING, UNION_EXPR
-
Method Summary
Modifier and TypeMethodDescriptionevaluate
(XPathContext context) Evaluates the expression and returns the XPath result.short
Returns the type of Expr this Expr representstoString()
Returns the XPath expression as a string.
-
Method Details
-
getExprType
public short getExprType()Returns the type of Expr this Expr represents- Specified by:
getExprType
in interfaceXPathExpression
- Returns:
- the type of Expr this Expr represents
-
evaluate
Evaluates the expression and returns the XPath result.- Specified by:
evaluate
in interfaceXPathExpression
- Parameters:
context
- The XPathContext to use during evaluation.- Returns:
- The XPathResult (not null).
- Throws:
XPathException
- if an error occured while evaluating this expression.
-
toString
Description copied from interface:XPathExpression
Returns the XPath expression as a string. The returned value is a valid XPath expression that can be parsed into an equivalentXPathExpression
object.- Specified by:
toString
in interfaceXPathExpression
- Overrides:
toString
in classObject
- Returns:
- The XPath expression as a string
-