Package org.exolab.adaptx.xpath.engine
Class SelectExpr
- java.lang.Object
-
- org.exolab.adaptx.xpath.engine.SelectExpr
-
- All Implemented Interfaces:
XPathExpression
public final class SelectExpr extends java.lang.Object implements XPathExpression
This class represents a SelectExpr[1] SelectExpr ::= UnionExpr
- Version:
- $Revision: 3737 $ $Date: 2003-05-13 09:59:57 +0200 (Tue, 13 May 2003) $
- 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
-
-
Constructor Summary
Constructors Constructor Description SelectExpr()Creates a new SelectExpr.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XPathResultevaluate(XPathContext context)Evaluates the expression and returns the XPath result.shortgetExprType()Returns the type of this expression.UnionExprgetUnionExpr()java.lang.StringtoString()Returns the XPath expression as a string.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Description copied from interface:XPathExpressionReturns the XPath expression as a string. The returned value is a valid XPath expression that can be parsed into an equivalentXPathExpressionobject.- Specified by:
toStringin interfaceXPathExpression- Overrides:
toStringin classjava.lang.Object- Returns:
- The XPath expression as a string
-
getExprType
public short getExprType()
Description copied from interface:XPathExpressionReturns the type of this expression.- Specified by:
getExprTypein interfaceXPathExpression- Returns:
- The type of this expression
-
evaluate
public XPathResult evaluate(XPathContext context) throws XPathException
Evaluates the expression and returns the XPath result.- Specified by:
evaluatein interfaceXPathExpression- Parameters:
context- The XPathContext to use during evaluation.- Returns:
- The XPathResult (not null).
- Throws:
XPathException- if an error occured while evaluating this expression.
-
getUnionExpr
public UnionExpr getUnionExpr()
-
-