Package net.sf.saxon.instruct
Class UserFunctionParameter
java.lang.Object
net.sf.saxon.instruct.UserFunctionParameter
- All Implemented Interfaces:
Serializable
,Binding
Run-time object representing a formal argument to a user-defined function
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluateVariable
(XPathContext context) Evaluate the variableint
If this is a local variable held on the local stack frame, return the corresponding slot number.int
final boolean
Test whether it is permitted to assign to the variable using the saxon:assign extension element.final boolean
isGlobal()
Indicate whether the binding is local or global.void
setReferenceCount
(int count) void
setRequiredType
(SequenceType type) void
setSlotNumber
(int slot)
-
Constructor Details
-
UserFunctionParameter
public UserFunctionParameter()
-
-
Method Details
-
isGlobal
public final boolean isGlobal()Indicate whether the binding is local or global. A global binding is one that has a fixed value for the life of a query or transformation; any other binding is local. -
isAssignable
public final boolean isAssignable()Test whether it is permitted to assign to the variable using the saxon:assign extension element. This will only be for an XSLT global variable where the extra attribute saxon:assignable="yes" is present.- Specified by:
isAssignable
in interfaceBinding
-
getLocalSlotNumber
public int getLocalSlotNumber()If this is a local variable held on the local stack frame, return the corresponding slot number. In other cases, return -1.- Specified by:
getLocalSlotNumber
in interfaceBinding
-
setRequiredType
-
getRequiredType
-
setReferenceCount
public void setReferenceCount(int count) -
getReferenceCount
public int getReferenceCount() -
setSlotNumber
public void setSlotNumber(int slot) -
evaluateVariable
Description copied from interface:Binding
Evaluate the variable- Specified by:
evaluateVariable
in interfaceBinding
- Throws:
XPathException
-