|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.XPathContextMinor
net.sf.saxon.expr.XPathContextMajor
public class XPathContextMajor
This class represents a "major context" in which an XPath expression is evaluated: a "major context" object allows all aspects of the dynamic context to change, whereas a "minor context" only allows changes to the focus and the destination for push output.
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. |
|
XPathContextMajor(Item item,
Executable exec)
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. |
net.sf.saxon.expr.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(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 collection)
Set the current grouping iterator. |
void |
setCurrentMode(Mode mode)
Set the current mode. |
void |
setCurrentRegexIterator(RegexIterator currentJRegexIterator)
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(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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPathContextMajor(Controller c)
public 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).public XPathContextMajor(Item item, Configuration config)
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).Method Detail |
---|
public XPathContextMajor newContext()
newContext
in interface XPathContext
newContext
in class XPathContextMinor
public static XPathContextMajor newContext(XPathContextMinor p)
public net.sf.saxon.expr.XPathContextMajor.XSLTContext getXSLTContext()
getXSLTContext
in interface XPathContext
getXSLTContext
in class XPathContextMinor
public ParameterSet getLocalParameters()
getLocalParameters
in interface XPathContext
getLocalParameters
in class XPathContextMinor
public void setLocalParameters(ParameterSet localParameters)
localParameters
- the supplied parameterspublic ParameterSet getTunnelParameters()
getTunnelParameters
in interface XPathContext
getTunnelParameters
in class XPathContextMinor
public void setTunnelParameters(ParameterSet tunnelParameters)
tunnelParameters
- the supplied tunnel parameterspublic void setOrigin(InstructionInfoProvider expr)
InstructionInfoProvider
, allowing information
about the calling instruction to be obtained, or null.
setOrigin
in interface XPathContext
setOrigin
in class XPathContextMinor
public void setStackFrame(SlotManager map, ValueRepresentation[] variables)
public void resetStackFrameMap(SlotManager map, int numberOfParams)
public void requestTailCall(UserFunction fn, ValueRepresentation[] variables)
public 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
in interface XPathContext
getCurrentMode
in class XPathContextMinor
public void setCurrentTemplateRule(Rule rule)
rule
- the current template rulepublic Rule getCurrentTemplateRule()
getCurrentTemplateRule
in interface XPathContext
getCurrentTemplateRule
in class XPathContextMinor
public void setCurrentGroupIterator(GroupIterator collection)
collection
- the new current GroupIteratorpublic GroupIterator getCurrentGroupIterator()
getCurrentGroupIterator
in interface XPathContext
getCurrentGroupIterator
in class XPathContextMinor
public void setCurrentRegexIterator(RegexIterator currentJRegexIterator)
currentJRegexIterator
- the current regex iteratorpublic RegexIterator getCurrentRegexIterator()
getCurrentRegexIterator
in interface XPathContext
getCurrentRegexIterator
in class XPathContextMinor
public boolean useLocalParameter(int fingerprint, LocalParam binding, boolean isTunnel) throws XPathException
useLocalParameter
in interface XPathContext
useLocalParameter
in class XPathContextMinor
fingerprint
- The fingerprint of the parameter namebinding
- The XSLParam element to bind its value toisTunnel
- True if a tunnel parameter is required, else false
XPathException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |