net.sf.saxon.expr
public class XPathContextMajor extends XPathContextMinor
Constructor Summary | |
---|---|
XPathContextMajor(Controller controller)
Constructor should only be called by the Controller,
which acts as a XPathContext factory. | |
XPathContextMajor(Item item, Executable exec)
Constructor for use in free-standing Java applications. | |
XPathContextMajor(Item item, Configuration config)
Constructor for use in free-standing Java applications. |
Method Summary | |
---|---|
GroupIterator | getCurrentGroupIterator()
Get the current group iterator. |
Mode | getCurrentMode()
Get the current mode. |
RegexIterator | getCurrentRegexIterator()
Get the current regex iterator. |
Rule | getCurrentTemplateRule()
Get the current template. |
ParameterSet | getLocalParameters()
Get the local parameters for the current template call. |
UserFunction | getTailCallFunction()
Determine whether the body of a function is to be repeated, due to tail-recursive function calls |
ParameterSet | getTunnelParameters()
Get the tunnel parameters for the current template call. |
XPathContextMajor | newContext()
Construct a new context as a copy of another. |
static XPathContextMajor | newContext(XPathContextMinor prev)
Create a new "major" context (one that is capable of holding a stack frame with local variables |
void | openStackFrame(SlotManager map)
Create a new stack frame for local variables, using the supplied SlotManager to
define the allocation of slots to individual variables |
void | openStackFrame(int numberOfVariables)
Create a new stack frame large enough to hold a given number of local variables,
for which no stack frame map is available. |
void | requestTailCall(UserFunction fn, ValueRepresentation[] variables)
Reset the local stack frame. |
void | resetStackFrameMap(SlotManager map, int numberOfParams)
Reset the stack frame variable map, while reusing the StackFrame object itself. |
void | setCurrentGroupIterator(GroupIterator iterator)
Set the current grouping iterator. |
void | setCurrentMode(Mode mode)
Set the current mode. |
void | setCurrentRegexIterator(RegexIterator currentRegexIterator)
Set the current regex iterator. |
void | setCurrentTemplateRule(Rule rule)
Set the current template. |
void | setLocalParameters(ParameterSet localParameters)
Set the local parameters for the current template call. |
void | setOrigin(InstructionInfo expr)
Set the creating expression (for use in diagnostics). |
void | setStackFrame(SlotManager map, ValueRepresentation[] variables)
Set the local stack frame. |
void | setTunnelParameters(ParameterSet tunnelParameters)
Set the tunnel parameters for the current template call. |
int | useLocalParameter(StructuredQName qName, LocalParam binding, boolean isTunnel)
Use local parameter. |
Parameters: controller the Controller
Parameters: item the item to use as the initial context item. If this is null, the comtext item is initially undefined (which will cause a dynamic error if it is referenced). exec the Executable
Deprecated: since 9.0 - use XPathContextMajor
Constructor for use in free-standing Java applications.Parameters: item the item to use as the initial context item. If this is null, the comtext item is initially undefined (which will cause a dynamic error if it is referenced). config the Saxon Configuration
Returns: the current grouped collection
Returns: the current mode. May return null if the current mode is the default mode.
Returns: the current regular expressions iterator
Returns: the current template
Returns: the supplied parameters
Returns: null if no tail call has been requested, or the name of the function to be called otherwise
Returns: the supplied tunnel parameters
Parameters: prev the previous context (the one causing the new context to be created)
Returns: the new major context
Parameters: map the SlotManager for the new stack frame
Parameters: numberOfVariables The number of local variables to be accommodated.
Parameters: fn the user function being called using tail recursion variables the parameter to be supplied to the user function
Parameters: map the SlotManager representing the stack frame contents numberOfParams the number of parameters required on the new stack frame
Parameters: iterator the new current GroupIterator
Parameters: mode the new current mode
Parameters: currentRegexIterator the current regex iterator
Parameters: rule the current template rule
Parameters: localParameters the supplied parameters
Parameters: map the SlotManager, which holds static details of the allocation of variables to slots variables the array of "slots" to hold the actual variable values. This array will be copied if it is too small to hold all the variables defined in the SlotManager
Parameters: tunnelParameters the supplied tunnel parameters
Parameters: qName The fingerprint of the parameter name binding The XSLParam element to bind its value to isTunnel True if a tunnel parameter is required, else false
Returns: ParameterSet.NOT_SUPPLIED, ParameterSet.SUPPLIED, or ParameterSet.SUPPLIED_AND_CHECKED