de.fraunhofer.ipsi.xquery.tree.expression
Class XQueryTypeSwitch

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.expression.XQueryTypeSwitch
All Implemented Interfaces:
XQueryExpression, XQueryNode

public class XQueryTypeSwitch
extends XQueryExpressionAbstract

XQuery Interpreter TypeSwitchOperator.

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

Constructor Summary
XQueryTypeSwitch(PositionInfo pos, java.util.List<XQueryExpression> switchexp, java.util.List<XQueryCaseClause> case_cl, XQueryExpression def)
          Constructor
XQueryTypeSwitch(PositionInfo pos, java.util.List<XQueryExpression> switchexp, java.util.List<XQueryCaseClause> case_cl, XQueryVariable var, XQueryExpression def)
          Constructor
 
Method Summary
 void acceptVisitor(VisitorXQueryExpression visitor)
          Method acceptVisitor
 java.util.List<XQueryCaseClause> getCaseClauses()
          Method getCaseClauses
 XQueryExpression getDefaultExpression()
          Method getDefaultExpression
 java.util.List<XQueryExpression> getSwitchExpression()
          Method getSwitchExpression
 XQueryVariable getVariable()
          Method getVariable
 boolean hasVariable()
          Method hasVariable
 
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.XQueryNode
getPosition
 

Constructor Detail

XQueryTypeSwitch

public XQueryTypeSwitch(PositionInfo pos,
                        java.util.List<XQueryExpression> switchexp,
                        java.util.List<XQueryCaseClause> case_cl,
                        XQueryVariable var,
                        XQueryExpression def)
Constructor

Parameters:
column - an int
line - an int
switchexp - a XQueryExprSequence
case_cl - a List
var - a XQueryVariable

XQueryTypeSwitch

public XQueryTypeSwitch(PositionInfo pos,
                        java.util.List<XQueryExpression> switchexp,
                        java.util.List<XQueryCaseClause> case_cl,
                        XQueryExpression def)
Constructor

Parameters:
column - an int
line - an int
switchexp - a XQueryExprSequence
case_cl - a List
def - a XQueryExpression
Method Detail

hasVariable

public boolean hasVariable()
Method hasVariable

Returns:
a boolean

getSwitchExpression

public java.util.List<XQueryExpression> getSwitchExpression()
Method getSwitchExpression

Returns:
a XQueryExpression

getVariable

public XQueryVariable getVariable()
Method getVariable

Returns:
a XQueryVariable

getCaseClauses

public java.util.List<XQueryCaseClause> getCaseClauses()
Method getCaseClauses

Returns:
a List

getDefaultExpression

public XQueryExpression getDefaultExpression()
Method getDefaultExpression

Returns:
a XQueryExpression

acceptVisitor

public void acceptVisitor(VisitorXQueryExpression visitor)
                   throws XQueryException
Method acceptVisitor

Parameters:
visitor - a VisitorXQuery
Throws:
QueryException
XQueryException