jd.xml.xpath.expr.function
Interface Function

All Superinterfaces:
Expression
All Known Subinterfaces:
XsltFunction
All Known Implementing Classes:
Available, BooleanFunction, DocumentFunction, FormatNumber, KeyFunction, NodeSetFunction, NumericFunction, ScriptFunction, StringFunction, SystemProperty, VariableFunction

public interface Function
extends Expression

Function represents a XPath function. A function takes zero or more XPath expressions as arguments and computes an XObject result value.


Field Summary
static Expression[] NULL_ARGUMENTS
           
 
Fields inherited from interface jd.xml.xpath.expr.Expression
DEP_CONTEXT_NODE, DEP_CONTEXT_POSITION, DEP_CONTEXT_SIZE, DEP_CONTEXT_STATIC, DEP_NONE, DEP_UNKNOWN
 
Method Summary
 Expression getArgument(int i)
          Return the actual argument for the given index.
 FunctionType getFunctionType()
          Return the FunctionType of the Function-
 void setArguments(Expression[] arguments)
          Set the function arguments.
 
Methods inherited from interface jd.xml.xpath.expr.Expression
accept, getContextDependencies, getResultType, hasContextDependencies, isUniqueFilter, matchesFilter, toBooleanValue, toNode, toNodeSet, toNumberValue, toString, toStringValue, toXObject
 

Field Detail

NULL_ARGUMENTS

public static final Expression[] NULL_ARGUMENTS
Method Detail

getFunctionType

public FunctionType getFunctionType()
Return the FunctionType of the Function-


setArguments

public void setArguments(Expression[] arguments)
                  throws XPathException
Set the function arguments.

Throws:
XPathException - thrown if the number of arguments is not correct

getArgument

public Expression getArgument(int i)
Return the actual argument for the given index.