net.sf.saxon.expr
public class XPathContextMajor extends XPathContextMinor
| Nested Class Summary | |
|---|---|
| protected static class | XPathContextMajor.XSLTContext
An XSLTContext object holds all the additional dynamic context items used in XSLT.
|
| Constructor Summary | |
|---|---|
| XPathContextMajor(Controller c)
Constructor should only be called by the Controller,
which acts as a XPathContext factory. | |
| XPathContextMajor(Item item, Configuration config)
Constructor for use in free-standing Java applications. | |
| Method Summary | |
|---|---|
| ValueRepresentation | evaluateLocalVariable(int slotnumber)
Get the value of a local variable, identified by its slot number |
| GroupIterator | getCurrentGroupIterator()
Get the current group iterator. |
| Mode | getCurrentMode()
Get the current mode. |
| RegexIterator | getCurrentRegexIterator()
Get the current regex iterator. |
| Template | getCurrentTemplate()
Get the current template. |
| ParameterSet | getLocalParameters()
Get the local parameters for the current template call. |
| StackFrame | getStackFrame()
Get a reference to the local stack frame for variables. |
| ParameterSet | getTunnelParameters()
Get the tunnel parameters for the current template call. |
| XPathContextMajor.XSLTContext | getXSLTContext()
Get the XSLT-specific part of the context |
| XPathContextMajor | newContext()
Construct a new context as a copy of another. |
| static XPathContextMajor | newContext(XPathContextMinor p) |
| 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 | setCurrentGroupIterator(GroupIterator collection)
Set the current grouping iterator. |
| void | setCurrentMode(Mode mode)
Set the current mode. |
| void | setCurrentRegexIterator(RegexIterator currentJRegexIterator)
Set the current regex iterator. |
| void | setCurrentTemplate(Template template)
Set the current template. |
| void | setLocalParameters(ParameterSet localParameters)
Set the local parameters for the current template call. |
| void | setLocalVariable(int slotnumber, ValueRepresentation value)
Set the value of a local variable, identified by its slot number |
| void | setOrigin(InstructionInfoProvider 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. |
| boolean | useLocalParameter(int fingerprint, LocalParam binding, boolean isTunnel)
Use local parameter. |
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: array of variables.
Returns: the supplied tunnel parameters
Parameters: map the SlotManager for the new stack frame
Parameters: numberOfVariables The number of local variables to be accommodated.
Parameters: collection the new current GroupIterator
Parameters: mode the new current mode
Parameters: currentJRegexIterator the current regex iterator
Parameters: template the current template
Parameters: localParameters the supplied parameters
Parameters: tunnelParameters the supplied tunnel parameters
Parameters: fingerprint 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: true if a parameter of this name was supplied, false if not