de.fraunhofer.ipsi.xquery.tree.prolog
Class XQueryVarDecl

java.lang.Object
  extended by de.fraunhofer.ipsi.xquery.tree.XQueryNodeAbstract
      extended by de.fraunhofer.ipsi.xquery.tree.prolog.XQueryVarDecl
All Implemented Interfaces:
XQueryPrologDecl, XQueryNode

public class XQueryVarDecl
extends XQueryNodeAbstract
implements XQueryPrologDecl


Constructor Summary
XQueryVarDecl(PositionInfo pos, XQueryVariable var, XQuerySequenceType type, XQueryExpression expr)
          Constructor
 
Method Summary
 void acceptVisitor(VisitorXQueryModulesAndProlog visitor)
          Method acceptVisitor
 XQuerySequenceType getDatatype()
          Method getDatatype
 EvaluationContext getDynamicContext()
          Method getStaticContext
 XQueryExpression getExpression()
          Method getExpression
 QNameExpr getSignature()
          Method getSignature
 StaticContext getStaticContext()
          Method getStaticContext
 XQueryVariable getVariable()
          Method getVariable
 boolean isExternal()
          Method setExternal
 void setDynamicContext(EvaluationContext context)
          Method setStaticContext
 void setSignature(QNameExpr name)
          Method setSignature
 void setStaticContext(StaticContext context)
          Method setStaticContext
 
Methods inherited from class de.fraunhofer.ipsi.xquery.tree.XQueryNodeAbstract
getPosition, setPosition
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XQueryVarDecl

public XQueryVarDecl(PositionInfo pos,
                     XQueryVariable var,
                     XQuerySequenceType type,
                     XQueryExpression expr)
Constructor

Parameters:
column - an int
line - an int
var - a XQueryVariable
type - a XQuerySequenceType
expr - a XQueryExprSequence
Method Detail

isExternal

public boolean isExternal()
Method setExternal


getVariable

public XQueryVariable getVariable()
Method getVariable

Returns:
a XQueryVariable

getDatatype

public XQuerySequenceType getDatatype()
Method getDatatype

Returns:
a XQuerySequenceType

getExpression

public XQueryExpression getExpression()
Method getExpression

Returns:
a XQueryExpression

getSignature

public QNameExpr getSignature()
Method getSignature

Returns:
a XS_QName

setSignature

public void setSignature(QNameExpr name)
Method setSignature

Parameters:
name - a XS_QName

getStaticContext

public StaticContext getStaticContext()
Method getStaticContext

Returns:
a StaticContext

setStaticContext

public void setStaticContext(StaticContext context)
Method setStaticContext

Parameters:
context - a StaticContext

getDynamicContext

public EvaluationContext getDynamicContext()
Method getStaticContext

Returns:
a StaticContext

setDynamicContext

public void setDynamicContext(EvaluationContext context)
Method setStaticContext

Parameters:
context - a StaticContext

acceptVisitor

public void acceptVisitor(VisitorXQueryModulesAndProlog visitor)
                   throws XQueryException
Method acceptVisitor

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