public class XPathContextMajor extends XPathContextMinor
stackFrame
?????? |
---|
XPathContextMajor(Controller controller)
Constructor should only be called by the Controller,
which acts as a XPathContext factory.
|
XPathContextMajor(Item item,
Configuration config)
????
since 9.0 - use
XPathContextMajor(Item, Executable) |
XPathContextMajor(Item item,
Executable exec)
Constructor for use in free-standing Java applications.
|
?????? | ????? |
---|---|
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(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 |
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 |
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.
|
boolean |
useLocalParameter(StructuredQName qName,
LocalParam binding,
boolean isTunnel)
Use local parameter.
|
changeOutputDestination, evaluateLocalVariable, getCaller, getCollation, getConfiguration, getContextItem, getContextPosition, getController, getCurrentDateTime, getCurrentIterator, getDefaultCollation, getImplicitTimezone, getLast, getNameChecker, getNamePool, getOrigin, getOriginatingConstructType, getReceiver, getStackFrame, isAtLast, iterateStackFrames, newCleanContext, newMinorContext, setCaller, setCurrentIterator, setLocalVariable, setOriginatingConstructType, setReceiver, setTemporaryOutputState, setTemporaryReceiver
public XPathContextMajor(Controller controller)
controller
- the Controllerpublic XPathContextMajor(Item item, Executable exec)
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 Executablepublic XPathContextMajor(Item item, Configuration config)
XPathContextMajor(Item, Executable)
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 Configurationpublic XPathContextMajor newContext()
newContext
???? XPathContext
newContext
??? XPathContextMinor
public static XPathContextMajor newContext(XPathContextMinor prev)
prev
- the previous context (the one causing the new context to be created)public ParameterSet getLocalParameters()
getLocalParameters
???? XPathContext
getLocalParameters
??? XPathContextMinor
public void setLocalParameters(ParameterSet localParameters)
localParameters
- the supplied parameterspublic ParameterSet getTunnelParameters()
getTunnelParameters
???? XPathContext
getTunnelParameters
??? XPathContextMinor
public void setTunnelParameters(ParameterSet tunnelParameters)
tunnelParameters
- the supplied tunnel parameterspublic void setOrigin(InstructionInfo expr)
Expression
, allowing information
about the calling instruction to be obtained, or null.setOrigin
???? XPathContext
setOrigin
??? XPathContextMinor
expr
- the expression that created this context objectpublic void setStackFrame(SlotManager map, ValueRepresentation[] variables)
map
- the SlotManager, which holds static details of the allocation of variables to slotsvariables
- 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 SlotManagerpublic void resetStackFrameMap(SlotManager map, int numberOfParams)
map
- the SlotManager representing the stack frame contentsnumberOfParams
- the number of parameters required on the new stack framepublic void requestTailCall(UserFunction fn, ValueRepresentation[] variables)
fn
- the user function being called using tail recursionvariables
- the parameter to be supplied to the user functionpublic UserFunction getTailCallFunction()
public void openStackFrame(SlotManager map)
map
- the SlotManager for the new stack framepublic void openStackFrame(int numberOfVariables)
numberOfVariables
- The number of local variables to be accommodated.public void setCurrentMode(Mode mode)
mode
- the new current modepublic Mode getCurrentMode()
getCurrentMode
???? XPathContext
getCurrentMode
??? XPathContextMinor
public void setCurrentTemplateRule(Rule rule)
rule
- the current template rulepublic Rule getCurrentTemplateRule()
getCurrentTemplateRule
???? XPathContext
getCurrentTemplateRule
??? XPathContextMinor
public void setCurrentGroupIterator(GroupIterator iterator)
iterator
- the new current GroupIteratorpublic GroupIterator getCurrentGroupIterator()
getCurrentGroupIterator
???? XPathContext
getCurrentGroupIterator
??? XPathContextMinor
public void setCurrentRegexIterator(RegexIterator currentRegexIterator)
currentRegexIterator
- the current regex iteratorpublic RegexIterator getCurrentRegexIterator()
getCurrentRegexIterator
???? XPathContext
getCurrentRegexIterator
??? XPathContextMinor
public boolean useLocalParameter(StructuredQName qName, LocalParam binding, boolean isTunnel) throws XPathException
useLocalParameter
???? XPathContext
useLocalParameter
??? XPathContextMinor
qName
- The fingerprint of the parameter namebinding
- The XSLParam element to bind its value toisTunnel
- True if a tunnel parameter is required, else falseXPathException