|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.sxpath.XPathVariable
public final class XPathVariable
An object representing an XPath variable for use in the standalone XPath API. The object can only be created by calling the declareVariable method of class StandaloneContext. Note that once declared, this object is thread-safe: it does not hold the actual variable value, which means it can be used with any number of evaluations of a given XPath expression, in series or in parallel.
Method Summary | |
---|---|
ValueRepresentation |
evaluateVariable(XPathContext context)
Get the value of the variable. |
int |
getLocalSlotNumber()
If this is a local variable held on the local stack frame, return the corresponding slot number. |
int |
getNameCode()
Establish the nameCode of the name of this variable. |
String |
getVariableName()
Get the name of the variable. |
QNameValue |
getVariableQName()
Get the name of the variable as a QNameValue. |
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 |
registerReference(BindingReference ref)
Method called by the XPath expression parser to register a reference to this variable. |
void |
setSlotNumber(int slotNumber)
Set the slot number allocated to this variable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isGlobal()
isGlobal
in interface Binding
public final boolean isAssignable()
isAssignable
in interface Binding
public void setSlotNumber(int slotNumber)
slotNumber
- public int getLocalSlotNumber()
getLocalSlotNumber
in interface Binding
public QNameValue getVariableQName()
public String getVariableName()
getVariableName
in interface VariableDeclaration
public int getNameCode()
getNameCode
in interface VariableDeclaration
public void registerReference(BindingReference ref)
registerReference
in interface VariableDeclaration
public ValueRepresentation evaluateVariable(XPathContext context)
evaluateVariable
in interface Binding
context
- The dynamic evaluation context
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |