|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.xpath.FunctionSignature
This class implements a function signature for XPath functions. A function signature consists in the abstract of a function name, a return type, and the numbers and types of any arguments. This class implements the signature using a String for the name, and Class objects for the types. The argument types are stored in required and optional argument arrays; the numbers of arguments are found in the sizes of the arrays.
Function
,
FunctionCall
Constructor Summary | |
FunctionSignature(ExpandedQName name,
Class returnType)
Construct a function signature for a function taking no arguments |
|
FunctionSignature(ExpandedQName name,
Class returnType,
Class[] arguments)
Construct a function signature for a function taking a fixed number of required arguments |
|
FunctionSignature(ExpandedQName name,
Class returnType,
Class[] requiredArguments,
Class[] optionalArguments)
Construct a function signature for a function taking a fixed number (including zero) of required arguments and 1 or more optional arguments |
Method Summary | |
static Class[] |
getContextArgTypes()
A convenience function that returns an array with the number and type of arguments for built-in functions that need the current expression evaluation context. |
ExpandedQName |
getName()
Return the name of the function represented by this signature |
Class[] |
getOptionalArgs()
Return the array of optional arguments. |
Class[] |
getRequiredArgs()
Return the array of required arguments. |
Class |
getReturnType()
Return the Class object representing the function return type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FunctionSignature(ExpandedQName name, Class returnType)
name
- The name of the functionreturnType
- The Class object representing the return type of the function. This
must be a class that implements the ExpressionValue interface.public FunctionSignature(ExpandedQName name, Class returnType, Class[] arguments)
name
- The name of the functionreturnType
- The Class object representing the return type of the function. Thisarguments
- An array of Class objects representing the types of the arguments
must be a class that implements the ExpressionValue interface.public FunctionSignature(ExpandedQName name, Class returnType, Class[] requiredArguments, Class[] optionalArguments)
name
- The name of the functionreturnType
- The Class object representing the return type of the function. ThisrequiredArguments
- An array of Class objects representing the types of the argumentsoptionalArguments
- An array of Class objects representing the types of optional arguments
must be a class that implements the ExpressionValue interface.Method Detail |
public ExpandedQName getName()
public Class[] getRequiredArgs()
public Class[] getOptionalArgs()
public Class getReturnType()
public static Class[] getContextArgTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |