net.sf.saxon.instruct

Class UserFunctionParameter

public class UserFunctionParameter extends Object implements Binding, Serializable

Run-time object representing a formal argument to a user-defined function
Method Summary
ValueRepresentationevaluateVariable(XPathContext context)
intgetLocalSlotNumber()
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

evaluateVariable

public ValueRepresentation evaluateVariable(XPathContext context)

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.

getReferenceCount

public int getReferenceCount()

getRequiredType

public SequenceType getRequiredType()

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.

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.

setReferenceCount

public void setReferenceCount(int count)

setRequiredType

public void setRequiredType(SequenceType type)

setSlotNumber

public void setSlotNumber(int slot)