de.fraunhofer.ipsi.xquery.tree.xml
Class XQueryElementConstructor

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.primary.XQueryPrimaryExprAbstract
              extended by de.fraunhofer.ipsi.xquery.tree.xml.XQueryElementConstructor
All Implemented Interfaces:
XQueryExpression, XQueryPrimaryExpr, XQueryXmlExpression, XQueryStepExpr, XQueryNode

public class XQueryElementConstructor
extends XQueryPrimaryExprAbstract
implements XQueryXmlExpression

XQuery Interpreter ElementConstructorOperator.

Since:
CVS $Date: 2005/07/22 10:05:50 $
Version:
CVS $Revision: 1.6 $
Author:
Tobias Groh, Sven Overhage

Constructor Summary
XQueryElementConstructor(PositionInfo pos, QNameExpr namespec, java.util.List<XQueryAttribute> attributes)
          Constructor
XQueryElementConstructor(PositionInfo pos, QNameExpr namespec, java.util.List<XQueryAttribute> attributes, java.util.List<XQueryExpression> content)
          Constructor
 
Method Summary
 void acceptVisitor(VisitorXQueryExpression visitor)
          Method acceptVisitor
 java.util.List<XQueryAttribute> getAttributeList()
          Method getAttributeList
 java.util.List<XQueryExpression> getContent()
          Method getContent
 QNameExpr getName()
          Method getName
 boolean isEmpty()
          Method isEmpty
 
Methods inherited from class de.fraunhofer.ipsi.xquery.tree.primary.XQueryPrimaryExprAbstract
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.xpath.XQueryStepExpr
isForwardStep
 
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

XQueryElementConstructor

public XQueryElementConstructor(PositionInfo pos,
                                QNameExpr namespec,
                                java.util.List<XQueryAttribute> attributes)
Constructor

Parameters:
column - an int
line - an int
namespec - a QName
attributes - a List

XQueryElementConstructor

public XQueryElementConstructor(PositionInfo pos,
                                QNameExpr namespec,
                                java.util.List<XQueryAttribute> attributes,
                                java.util.List<XQueryExpression> content)
Constructor

Parameters:
column - an int
line - an int
namespec - a QName
attributes - a List
content - a List
Method Detail

isEmpty

public boolean isEmpty()
Method isEmpty

Returns:
a boolean

getContent

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

Returns:
a List

getAttributeList

public java.util.List<XQueryAttribute> getAttributeList()
Method getAttributeList

Returns:
a List

getName

public QNameExpr getName()
Method getName

Returns:
a QName

acceptVisitor

public void acceptVisitor(VisitorXQueryExpression visitor)
                   throws XQueryException
Method acceptVisitor

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