net.sf.saxon.instruct
public final class Bindery extends Object
Method Summary | |
---|---|
void | allocateGlobals(SlotManager map)
Define how many slots are needed for global variables |
void | assignGlobalVariable(GlobalVariable binding, ValueRepresentation value)
Assign a new value to a global variable. |
void | defineGlobalParameters(GlobalParameterSet params)
Define global parameters |
void | defineGlobalVariable(GlobalVariable binding, ValueRepresentation value)
Provide a value for a global variable |
ValueRepresentation | getGlobalVariable(int slot)
Get the value of a global variable whose slot number is known |
SlotManager | getGlobalVariableMap()
Get the Global Variable Map, containing the mapping of variable names (fingerprints)
to slot numbers. |
ValueRepresentation[] | getGlobalVariables()
Get all the global variables, as an array. |
ValueRepresentation | getGlobalVariableValue(GlobalVariable binding)
Get the value of a global variable |
void | setExecuting(GlobalVariable binding, boolean executing)
Set/Unset a flag to indicate that a particular global variable is currently being
evaluated. |
boolean | useGlobalParameter(int fingerprint, GlobalParam binding, XPathContext context)
Use global parameter. |
Parameters: binding identifies the local or global variable or parameter
Parameters: params The ParameterSet passed in by the user, eg. from the command line
Parameters: binding identifies the variable value the value of the variable
Parameters: slot the slot number of the required variable
Returns: the Value of the variable if defined, null otherwise.
Parameters: binding the Binding that establishes the unique instance of the variable
Returns: the Value of the variable if defined, null otherwise.
Throws: net.sf.saxon.trans.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