de.fraunhofer.ipsi.xquery.tree.xpath
Class XQueryPathExpr

java.lang.Object
  extended by de.fraunhofer.ipsi.xquery.tree.XQueryNodeAbstract
      extended by de.fraunhofer.ipsi.xquery.tree.expression.XQueryExpressionAbstract
          extended by de.fraunhofer.ipsi.xquery.tree.xpath.XQueryPathExpr
All Implemented Interfaces:
XQueryExpression, XQueryStepExpr, XQueryNode

public class XQueryPathExpr
extends XQueryExpressionAbstract
implements XQueryStepExpr

XQuery Interpreter PathOperator.

Since:
CVS $Date: 2004/08/31 10:41:11 $
Version:
CVS $Revision: 1.4 $
Author:
Tobias Groh, Sven Overhage

Constructor Summary
XQueryPathExpr(PathOperatorEnum kind, XQueryStepExpr left, XQueryStepExpr right)
          Constructor
XQueryPathExpr(PositionInfo pos, PathOperatorEnum kind)
          Constructor
XQueryPathExpr(PositionInfo pos, PathOperatorEnum kind, XQueryStepExpr right)
          Constructor
XQueryPathExpr(PositionInfo pos, PathOperatorEnum kind, XQueryStepExpr left, XQueryStepExpr right)
          Constructor
 
Method Summary
 void acceptVisitor(VisitorXQueryExpression visitor)
          Method acceptVisitor
 XQueryStepExpr getLeft()
          Method getLeft
 PathOperatorEnum getOperation()
          Method getOperation
 XQueryStepExpr getRight()
          Method getRight
 boolean isForwardStep()
          Method isForwardStep
 
Methods inherited from class de.fraunhofer.ipsi.xquery.tree.expression.XQueryExpressionAbstract
getCoreExpression, setCoreExpression, toString
 
Methods inherited from class de.fraunhofer.ipsi.xquery.tree.XQueryNodeAbstract
getPosition, setPosition
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.fraunhofer.ipsi.xquery.tree.expression.XQueryExpression
getCoreExpression
 
Methods inherited from interface de.fraunhofer.ipsi.xquery.tree.XQueryNode
getPosition
 

Constructor Detail

XQueryPathExpr

public XQueryPathExpr(PositionInfo pos,
                      PathOperatorEnum kind)
Constructor

Parameters:
column - an int
line - an int
kind - an Enum

XQueryPathExpr

public XQueryPathExpr(PositionInfo pos,
                      PathOperatorEnum kind,
                      XQueryStepExpr right)
Constructor

Parameters:
column - an int
line - an int
kind - an Enum
right - a XQueryStepExpr

XQueryPathExpr

public XQueryPathExpr(PathOperatorEnum kind,
                      XQueryStepExpr left,
                      XQueryStepExpr right)
Constructor

Parameters:
kind - a PathOperatorEnum
left - a XQueryStepExpr
right - a XQueryStepExpr

XQueryPathExpr

public XQueryPathExpr(PositionInfo pos,
                      PathOperatorEnum kind,
                      XQueryStepExpr left,
                      XQueryStepExpr right)
Constructor

Parameters:
column - an int
line - an int
kind - an Enum
left - a XQueryStepExpr
right - a XQueryStepExpr
Method Detail

getOperation

public PathOperatorEnum getOperation()
Method getOperation

Returns:
an Enum

getLeft

public XQueryStepExpr getLeft()
Method getLeft

Returns:
a XQueryStepExpr

getRight

public XQueryStepExpr getRight()
Method getRight

Returns:
a XQueryStepExpr

isForwardStep

public boolean isForwardStep()
Method isForwardStep

Specified by:
isForwardStep in interface XQueryStepExpr
Returns:
a boolean

acceptVisitor

public void acceptVisitor(VisitorXQueryExpression visitor)
                   throws XQueryException
Method acceptVisitor

Specified by:
acceptVisitor in interface XQueryExpression
Parameters:
visitor - a VisitorXQuery
Throws:
QueryException
XQueryException