com.icl.saxon
public final class Bindery extends Object
Method Summary | |
---|---|
void | allocateGlobals(int n)
Define how many slots are needed for global variables |
void | allocateLocals(int n)
Define how many slots are needed for local variables. |
void | assignVariable(Binding binding, Value value)
Assign a new value to a variable |
void | closeStackFrame()
Close the current stack frame for local variables |
void | defineGlobalParameters(ParameterSet params)
Define global parameters |
void | defineGlobalVariable(Binding binding, Value value)
Define global variable |
void | defineLocalVariable(Binding binding, Value value)
Define local variable |
int | getFrameId()
Get the id of the current frame. |
Value | getLocalParameter(int fingerprint)
Get local parameter. |
Value | getValue(Binding binding)
Get the value of a variable |
Value | getValue(Binding binding, int frameId)
Get the value of a variable in the given frame |
boolean | isEvaluated(Binding binding)
Test if global variable has already been evaluated |
void | openStackFrame(ParameterSet localParameters)
Start a new stack frame for local variables |
void | setExecuting(Binding binding, boolean executing)
Set/Unset a flag to indicate that a particular global variable is currently being
evaluated. |
boolean | useGlobalParameter(int fingerprint, Binding binding)
Use global parameter. |
boolean | useLocalParameter(int fingerprint, Binding binding)
Use local parameter. |
Parameters: name the name of the local or global variable or parameter (without a $ sign)
Returns: the Value of the variable
Throws: SAXException if the variable has not been declared
Parameters: params The ParameterSet passed in by the user, eg. from the command line
Parameters: name the name of the variable value the value of the variable
Throws: SAXException if the variable is already declared
Parameters: name the name of the variable value the value of the variable
Returns: an id, that may be given to getValue(Binding,int)
Returns: The value of the parameter, or null if not supplied
UNKNOWN: The name of the parameter (an absolute/expanded name, i.e. URI plus local part)
Parameters: binding the Binding that establishes the unique instance of the variable
Returns: the Value of the variable if defined, null otherwise.
Parameters: binding the Binding that establishes the unique instance of the variable frameId the id of the frame, see getFrameId
Returns: the Value of the variable if defined, null otherwise.
Throws: XPathException If an attempt is made to set the flag when it is already set, this means the definition of the variable is circular.
Parameters: fingerprint The fingerprint of the parameter binding The XSLParam element to bind its value to
Returns: true if a parameter of this name was supplied, false if not
Parameters: fingerprint The fingerprint of the parameter name binding The XSLParam element to bind its value to
Returns: true if a parameter of this name was supplied, false if not