Class SelectExpr

java.lang.Object
org.exolab.adaptx.xpath.engine.SelectExpr
All Implemented Interfaces:
XPathExpression

public final class SelectExpr extends 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
  • Constructor Details

    • SelectExpr

      public SelectExpr()
      Creates a new SelectExpr. This SelectExpr will select the empty node set by default.
  • Method Details

    • toString

      public String 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 equivalent XPathExpression object.
      Specified by:
      toString in interface XPathExpression
      Overrides:
      toString in class Object
      Returns:
      The XPath expression as a string
    • getExprType

      public short getExprType()
      Description copied from interface: XPathExpression
      Returns the type of this expression.
      Specified by:
      getExprType in interface XPathExpression
      Returns:
      The type of this expression
    • evaluate

      public XPathResult evaluate(XPathContext context) throws XPathException
      Evaluates the expression and returns the XPath result.
      Specified by:
      evaluate in interface XPathExpression
      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()