Package net.sf.saxon.instruct
Class UserFunctionParameter
- java.lang.Object
-
- net.sf.saxon.instruct.UserFunctionParameter
-
- All Implemented Interfaces:
java.io.Serializable,Binding
public class UserFunctionParameter extends java.lang.Object implements Binding, java.io.Serializable
Run-time object representing a formal argument to a user-defined function- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserFunctionParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueRepresentationevaluateVariable(XPathContext context)Evaluate the variableintgetLocalSlotNumber()If this is a local variable held on the local stack frame, return the corresponding slot number.intgetReferenceCount()SequenceTypegetRequiredType()booleanisAssignable()Test whether it is permitted to assign to the variable using the saxon:assign extension element.booleanisGlobal()Indicate whether the binding is local or global.voidsetReferenceCount(int count)voidsetRequiredType(SequenceType type)voidsetSlotNumber(int slot)
-
-
-
Method Detail
-
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:
isAssignablein 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:
getLocalSlotNumberin interfaceBinding
-
setRequiredType
public void setRequiredType(SequenceType type)
-
getRequiredType
public SequenceType getRequiredType()
-
setReferenceCount
public void setReferenceCount(int count)
-
getReferenceCount
public int getReferenceCount()
-
setSlotNumber
public void setSlotNumber(int slot)
-
evaluateVariable
public ValueRepresentation evaluateVariable(XPathContext context) throws XPathException
Description copied from interface:BindingEvaluate the variable- Specified by:
evaluateVariablein interfaceBinding- Throws:
XPathException
-
-