public static class HofParserExtension.TemporaryXSLTVariableBinding extends java.lang.Object implements LocalBinding
| Constructor and Description |
|---|
TemporaryXSLTVariableBinding(SourceBinding decl) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReference(VariableReference ref,
boolean isLoopingReference)
Register a variable reference that refers to the variable bound in this expression
|
Sequence |
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()
Return the slot number of the variable held on the local stack frame
|
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.
|
boolean |
isIndexedVariable()
Ask whether the binding is to be indexed
|
void |
setIndexedVariable()
Say that the bound value has the potential to be indexed
|
public TemporaryXSLTVariableBinding(SourceBinding decl)
public SequenceType getRequiredType()
BindinggetRequiredType in interface Bindingpublic Sequence evaluateVariable(XPathContext context) throws XPathException
BindingevaluateVariable in interface Bindingcontext - the XPath dynamic evaluation contextXPathException - if an error occurs while evaluating
the variablepublic boolean isGlobal()
Bindingpublic boolean isAssignable()
BindingisAssignable in interface Bindingpublic int getLocalSlotNumber()
LocalBindinggetLocalSlotNumber in interface LocalBindingpublic StructuredQName getVariableQName()
BindinggetVariableQName in interface Bindingpublic void addReference(VariableReference ref, boolean isLoopingReference)
BindingaddReference in interface Bindingref - the variable referenceisLoopingReference - - true if the reference occurs within a loop, such as the predicate
of a filter expressionpublic IntegerValue[] getIntegerBoundsForVariable()
BindinggetIntegerBoundsForVariable in interface Bindingpublic void setIndexedVariable()
LocalBindingsetIndexedVariable in interface LocalBindingpublic boolean isIndexedVariable()
LocalBindingisIndexedVariable in interface LocalBindingCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.