public class SlotManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SlotManager |
EMPTY
An empty SlotManager
|
Constructor and Description |
---|
SlotManager()
The constructor should not be called directly.
|
SlotManager(int n)
Create a SlotManager with a given number of slots
|
Modifier and Type | Method and Description |
---|---|
int |
allocateSlotNumber(StructuredQName qName)
Allocate a slot number for a variable
|
int |
getNumberOfVariables()
Get number of variables (size of stack frame)
|
java.util.List<StructuredQName> |
getVariableMap()
Get the variable map (simply a list of variable names as structured QNames).
|
void |
setNumberOfVariables(int numberOfVariables)
Set the number of variables
|
void |
showStackFrame(XPathContext context,
Logger logger)
Display the values of the variables and parameters in an XPathContext stack frame
to a Logger
|
public static SlotManager EMPTY
public SlotManager()
Configuration.makeSlotManager()
.public SlotManager(int n)
n
- the number of slotspublic int getNumberOfVariables()
public void setNumberOfVariables(int numberOfVariables)
numberOfVariables
- the space to be allocated for variablespublic int allocateSlotNumber(StructuredQName qName)
qName
- the name of the variablepublic java.util.List<StructuredQName> getVariableMap()
public void showStackFrame(XPathContext context, Logger logger)
context
- the XPathContext holding the stack framelogger
- the destination for the outputCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.