Package net.sf.saxon.expr
Interface Binding
-
- All Known Implementing Classes:
Assign,Assignation,EagerLetExpression,ForExpression,GeneralVariable,GlobalParam,GlobalVariable,JAXPVariable,LetExpression,LocalParam,LocalVariable,QuantifiedExpression,SQLColumn.ColumnInstruction,UserFunctionParameter,Variable,WithParam
public interface BindingBinding is a interface used to represent the run-time properties and methods associated with a variable: specifically, a method to get the value of the variable.
-
-
Method Summary
All Methods Instance Methods Abstract 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.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.
-
-
-
Method Detail
-
evaluateVariable
ValueRepresentation evaluateVariable(XPathContext context) throws XPathException
Evaluate the variable- Throws:
XPathException
-
isGlobal
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
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.
-
getLocalSlotNumber
int getLocalSlotNumber()
If this is a local variable held on the local stack frame, return the corresponding slot number. In other cases, return -1.
-
-