net.sf.saxon.instruct
Interface FunctionSignature

All Known Implementing Classes:
XQueryFunction, XSLFunction

public interface FunctionSignature

The class FunctionSignature represents information about the name, argument types, and result type of a function.


Method Summary
 SequenceType[] getArgumentTypes()
          Get the required types of the arguments to this function, as an array
 int getFunctionFingerprint()
          Get the name of the function, as a namepool fingerprint
 int getNumberOfArguments()
          Get the number of arguments (the arity) of the function
 SequenceType getResultType()
          Get the type of value returned by this function
 

Method Detail

getFunctionFingerprint

public int getFunctionFingerprint()
Get the name of the function, as a namepool fingerprint

Returns:
the fingerprint of the function name

getResultType

public SequenceType getResultType()
Get the type of value returned by this function

Returns:
the declared result type, or the inferred result type if this is more precise

getArgumentTypes

public SequenceType[] getArgumentTypes()
Get the required types of the arguments to this function, as an array

Returns:
an array of SequenceType objects, one for each formal argument, indicating the required type of the argument

getNumberOfArguments

public int getNumberOfArguments()
Get the number of arguments (the arity) of the function

Returns:
the function's arity