|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Binding
Binding 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 | |
---|---|
void |
addReference(boolean isLoopingReference)
Register a variable reference that refers to the variable bound in this expression |
ValueRepresentation<? extends Item> |
evaluateVariable(XPathContext context)
Evaluate the 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 declared type of the variable |
StructuredQName |
getVariableQName()
Get the name of the variable |
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. |
Method Detail |
---|
SequenceType getRequiredType()
IntegerValue[] getIntegerBoundsForVariable()
ValueRepresentation<? extends Item> evaluateVariable(XPathContext context) throws XPathException
context
- the XPath dynamic evaluation context
XPathException
- if an error occurs while evaluating
the variableboolean isGlobal()
boolean isAssignable()
int getLocalSlotNumber()
StructuredQName getVariableQName()
void addReference(boolean isLoopingReference)
isLoopingReference
- - true if the reference occurs within a loop, such as the predicate
of a filter expression
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |