java.io.Serializable
, Binding
public class PositionVariable extends java.lang.Object implements Binding, java.io.Serializable
Constructor | Description |
---|---|
PositionVariable() |
Create a RangeVariable
|
Modifier and Type | Method | Description |
---|---|---|
void |
addReference(boolean isLoopingReference) |
Register a variable reference that refers to the variable bound in this expression
|
ValueRepresentation |
evaluateVariable(XPathContext context) |
Get the value of the range variable
|
IntegerValue[] |
getIntegerBoundsForVariable() |
If the variable is bound to an integer, get the minimum and maximum possible values.
|
int |
getLocalSlotNumber() |
If this is a local variable held on the local stack frame, return the corresponding slot number.
|
SequenceType |
getRequiredType() |
Get the required type (declared type) of the variable
|
StructuredQName |
getVariableQName() |
Get the name of the variable, as a namepool name code
|
boolean |
isAssignable() |
Test whether it is permitted to assign to the variable using the saxon:assign
extension element.
|
boolean |
isGlobal() |
Indicate whether the binding is local or global.
|
void |
setSlotNumber(int nr) |
Set the slot number for the range variable
|
void |
setVariableQName(StructuredQName variableName) |
Set the name of the variable
|
public StructuredQName getVariableQName()
getVariableQName
in interface Binding
public void addReference(boolean isLoopingReference)
Binding
addReference
in interface Binding
isLoopingReference
- - true if the reference occurs within a loop, such as the predicate
of a filter expressionpublic SequenceType getRequiredType()
getRequiredType
in interface Binding
public IntegerValue[] getIntegerBoundsForVariable()
getIntegerBoundsForVariable
in interface Binding
public void setVariableQName(StructuredQName variableName)
variableName
- the name of the variablepublic void setSlotNumber(int nr)
nr
- the slot number to be usedpublic int getLocalSlotNumber()
getLocalSlotNumber
in interface Binding
public ValueRepresentation evaluateVariable(XPathContext context) throws XPathException
evaluateVariable
in interface Binding
context
- the XPath dynamic evaluation contextXPathException
- if an error occurs while evaluating
the variablepublic boolean isAssignable()
isAssignable
in interface Binding