| java.lang.Object net.sf.saxon.trans.Variable
Variable | final public class Variable implements VariableDeclaration,Binding,Serializable(Code) | | 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.
|
evaluateVariable | public ValueRepresentation evaluateVariable(XPathContext context)(Code) | | Get the value of the variable. This method is used by the XPath execution engine
to retrieve the value.
Parameters: context - The dynamic evaluation context The value of the variable |
getLocalSlotNumber | public int getLocalSlotNumber()(Code) | | If this is a local variable held on the local stack frame, return the corresponding slot number.
In other cases, return -1.
|
getNameCode | public int getNameCode()(Code) | | Establish the nameCode of the name of this variable.
the nameCode |
getVariableName | public String getVariableName()(Code) | | Get the name of the variable. Used for diagnostic purposes only.
the name of the variable, as a string (containing the raw QName) |
isAssignable | final public boolean isAssignable()(Code) | | 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.
|
isGlobal | public boolean isGlobal()(Code) | | 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.
|
registerReference | public void registerReference(BindingReference ref)(Code) | | Method called by the XPath expression parser to register a reference to this variable.
This method should not be called by users of the API.
|
setValue | public void setValue(Object value) throws XPathException(Code) | | Assign a value to the variable. This value may be changed between successive evaluations of
a compiled XPath expression that references the variable.
Parameters: value - the value of the variable, as a Java object. This is converted to the "best fit"XPath data type. throws: net.sf.saxon.trans.XPathException - if the Java value cannot be converted to an XPath type |
setXPathValue | public void setXPathValue(ValueRepresentation value)(Code) | | Assign a value to the variable. This value may be changed between successive evaluations of
a compiled XPath expression that references the variable.
Parameters: value - the value of the variable, which must be an instance of a classrepresenting a value in the XPath model. |
|
|