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

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

public class XQueryFunctionDecl
extends XQueryNodeAbstract
implements XQueryPrologDecl

XQuery Interpreter FunctionDefinitionOperator.

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

Constructor Summary
XQueryFunctionDecl(PositionInfo pos, QNameExpr name, java.util.List<XQueryParameter> params, XQuerySequenceType type)
          Constructor
XQueryFunctionDecl(PositionInfo pos, QNameExpr name, java.util.List<XQueryParameter> params, XQuerySequenceType type, java.util.List<XQueryExpression> body)
          Constructor
 
Method Summary
 void acceptVisitor(VisitorXQueryModulesAndProlog visitor)
          Method acceptVisitor
 EvaluationContext getDynamicContext()
          Method getStaticContext
 java.util.List<XQueryExpression> getFunctionBody()
          Method getFunctionBody
 FunctionDeclaration getFunctionSignature()
          Method getFunctionSignature
 QNameExpr getName()
          Method getName
 java.util.List<XQueryParameter> getParams()
          Method getParams
 XQuerySequenceType getReturnDatatype()
          Method getReturnDatatype
 StaticContext getStaticContext()
          Method getStaticContext
 boolean hasReturnDatatype()
          Method hasReturnDatatype
 boolean isExternal()
          Method getExternal
 void setDynamicContext(EvaluationContext context)
          Method setStaticContext
 void setFunctionSignature(FunctionDeclaration sig)
          Method setFunctionSignature
 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

XQueryFunctionDecl

public XQueryFunctionDecl(PositionInfo pos,
                          QNameExpr name,
                          java.util.List<XQueryParameter> params,
                          XQuerySequenceType type,
                          java.util.List<XQueryExpression> body)
Constructor

Parameters:
column - an int
line - an int
name - a QName
params - a List
type - a XQuerySequenceType
body - a XQueryExprSequence

XQueryFunctionDecl

public XQueryFunctionDecl(PositionInfo pos,
                          QNameExpr name,
                          java.util.List<XQueryParameter> params,
                          XQuerySequenceType type)
Constructor

Parameters:
column - an int
line - an int
name - a QName
params - a List
type - a XQuerySequenceType
external - a boolean
Method Detail

getName

public QNameExpr getName()
Method getName

Returns:
a QName

getParams

public java.util.List<XQueryParameter> getParams()
Method getParams

Returns:
a List

getReturnDatatype

public XQuerySequenceType getReturnDatatype()
Method getReturnDatatype

Returns:
a XQuerySequenceType

getFunctionBody

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

Returns:
a XQueryExprSequence

isExternal

public boolean isExternal()
Method getExternal

Returns:
a boolean

hasReturnDatatype

public boolean hasReturnDatatype()
Method hasReturnDatatype

Returns:
a boolean

getFunctionSignature

public FunctionDeclaration getFunctionSignature()
Method getFunctionSignature

Returns:
a FunctionDeclaration

setFunctionSignature

public void setFunctionSignature(FunctionDeclaration sig)
Method setFunctionSignature

Parameters:
sig - a FunctionDeclaration

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