|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.icl.saxon.Bindery
The Bindery class holds information about variables and their values. Variables are identified by a Binding object. Values can be any object, though values of XSL variables will always be of class Value.
Constructor Summary | |
Bindery()
|
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. |
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(int n)
public void defineGlobalParameters(ParameterSet params)
params
- The ParameterSet passed in by the user, eg. from the command linepublic boolean useGlobalParameter(int fingerprint, Binding binding)
fingerprint
- The fingerprint of the parameterbinding
- The XSLParam element to bind its value to
public void defineGlobalVariable(Binding binding, Value value)
value
- the value of the variable
SAXException
- if the variable is already declaredpublic void setExecuting(Binding 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 boolean isEvaluated(Binding binding)
public void allocateLocals(int n)
public void openStackFrame(ParameterSet localParameters)
public void closeStackFrame()
public boolean useLocalParameter(int fingerprint, Binding binding)
fingerprint
- The fingerprint of the parameter namebinding
- The XSLParam element to bind its value to
public Value getLocalParameter(int fingerprint)
public void defineLocalVariable(Binding binding, Value value)
value
- the value of the variablepublic Value getValue(Binding binding)
binding
- the Binding that establishes the unique instance of the variable
public Value getValue(Binding binding, int frameId)
binding
- the Binding that establishes the unique instance of the variableframeId
- the id of the frame, see getFrameId
public int getFrameId()
public void assignVariable(Binding binding, Value value)
SAXException
- if the variable has not been declared
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |