|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.sf.saxon.instruct.Bindery
The Bindery class holds information about variables and their values. From Saxon 8.1, it is used only for global variables: local variables are now held in the XPathContext object. Variables are identified by a Binding object. Values will always be of class Value.
| Constructor Summary | |
Bindery()
|
|
| Method Summary | |
void |
allocateGlobals(SlotManager map)
Define how many slots are needed for global variables |
void |
assignGlobalVariable(GlobalVariable binding,
Value value)
Assign a new value to a global variable. |
void |
defineGlobalParameters(ParameterSet params)
Define global parameters |
void |
defineGlobalVariable(GlobalVariable binding,
Value value)
Provide a value for a global variable |
Value |
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. |
Value[] |
getGlobalVariables()
Get all the global variables, as an array. |
Value |
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)
Use global parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Bindery()
| Method Detail |
public void allocateGlobals(SlotManager map)
public void defineGlobalParameters(ParameterSet params)
params - The ParameterSet passed in by the user, eg. from the command line
public boolean useGlobalParameter(int fingerprint,
GlobalParam binding)
throws XPathException
fingerprint - The fingerprint of the parameterbinding - The XSLParam element to bind its value to
XPathException
public void defineGlobalVariable(GlobalVariable binding,
Value value)
binding - identifies the variablevalue - the value of the variable
public void setExecuting(GlobalVariable binding,
boolean executing)
throws XPathException
XPathException - If an attempt is made to set the flag when it is already set, this means
the definition of the variable is circular.public Value getGlobalVariableValue(GlobalVariable binding)
binding - the Binding that establishes the unique instance of the variable
public Value getGlobalVariable(int slot)
slot - the slot number of the required variable
public void assignGlobalVariable(GlobalVariable binding,
Value value)
binding - identifies the local or global variable or parameterpublic SlotManager getGlobalVariableMap()
public Value[] getGlobalVariables()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||