net.sf.saxon.instruct
Class UserFunctionParameter

java.lang.Object
  extended by net.sf.saxon.instruct.UserFunctionParameter
All Implemented Interfaces:
Serializable, Binding

public class UserFunctionParameter
extends Object
implements Binding, Serializable

Run-time object representing a formal argument to a user-defined function

See Also:
Serialized Form

Constructor Summary
UserFunctionParameter()
           
 
Method Summary
 Value evaluateVariable(XPathContext context)
          Evaluate the variable
 SequenceType getRequiredType()
          Get the static type of the variable binding
 String getVariableName()
          Get the display name of the variable (for diagnostics only)
 void setRequiredType(SequenceType type)
           
 void setSlotNumber(int slot)
           
 void setVariableName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserFunctionParameter

public UserFunctionParameter()
Method Detail

setRequiredType

public void setRequiredType(SequenceType type)

getRequiredType

public SequenceType getRequiredType()
Description copied from interface: Binding
Get the static type of the variable binding

Specified by:
getRequiredType in interface Binding

setSlotNumber

public void setSlotNumber(int slot)

evaluateVariable

public Value evaluateVariable(XPathContext context)
                       throws XPathException
Description copied from interface: Binding
Evaluate the variable

Specified by:
evaluateVariable in interface Binding
Throws:
XPathException

setVariableName

public void setVariableName(String name)

getVariableName

public String getVariableName()
Description copied from interface: Binding
Get the display name of the variable (for diagnostics only)

Specified by:
getVariableName in interface Binding