|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.instruct.SlotManager
public class SlotManager
A SlotManager supports functions, templates, etc: specifically, any executable code that requires a stack frame containing local variables. In XSLT a SlotManager underpins any top-level element that can contain local variable declarations, specifically, a top-level xsl:template, xsl:variable, xsl:param, or xsl:function element or an xsl:attribute-set element or xsl:key element. In XQuery it underpins functions and global variables. The purpose of the SlotManager is to allocate slot numbers to variables in the stack, and to record how many slots are needed. A Debugger may define a subclass with additional functionality.
Constructor Summary | |
---|---|
SlotManager()
The constructor should not be called directly. |
Method Summary | |
---|---|
int |
allocateSlotNumber(int fingerprint)
Allocate a slot number for a variable |
int |
getNumberOfVariables()
Get number of variables (size of stack frame) |
List |
getVariableMap()
Get the variable map (simply a list of fingerprints of the variable names). |
void |
setNumberOfVariables(int numberOfVariables)
Set the number of variables |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SlotManager()
Method Detail |
---|
public int getNumberOfVariables()
public void setNumberOfVariables(int numberOfVariables)
numberOfVariables
- public int allocateSlotNumber(int fingerprint)
public List getVariableMap()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |