org.exist.xquery.functions
Class FunError
java.lang.Object
org.exist.xquery.AbstractExpression
org.exist.xquery.PathExpr
org.exist.xquery.Function
org.exist.xquery.BasicFunction
org.exist.xquery.functions.FunError
- All Implemented Interfaces:
- CompiledXQuery, Expression, CompiledExpression
public class FunError
- extends BasicFunction
| Methods inherited from class org.exist.xquery.Function |
accept, analyze, createFunction, dump, getArgument, getArgumentCount, getArguments, getASTNode, getCardinality, getDependencies, getName, getParent, getSignature, isCalledAs, setArguments, setASTNode, setParent, setPrimaryAxis, toString |
| Methods inherited from class org.exist.xquery.PathExpr |
add, add, addPath, addPredicate, dump, getContext, getDocumentSet, getExpression, getLastExpression, getLength, getLiteralValue, getSource, isValid, replaceExpression, replaceLastExpression, reset, resetState, setContext, setSource |
signature
public static final FunctionSignature[] signature
DEFAULT_ERR
public static final QName DEFAULT_ERR
FunError
public FunError(XQueryContext context,
FunctionSignature signature)
returnsType
public int returnsType()
- Description copied from interface:
Expression
- The static return type of the expression.
This method should return one of the type constants defined in class
Type. If the return type cannot be determined
statically, return Type.ITEM.
- Specified by:
returnsType in interface Expression- Overrides:
returnsType in class Function
eval
public Sequence eval(Sequence[] args,
Sequence contextSequence)
throws XPathException
- Description copied from class:
BasicFunction
- Process the function. All arguments are passed in the array args. The number of
arguments, their type and cardinality have already been checked to match
the function signature.
- Specified by:
eval in class BasicFunction
- Throws:
XPathException
Copyright (C) Wolfgang Meier. All rights reserved.