|
||||||||||
| 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
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.
| 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. |
net.sf.saxon.regex.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(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 |
setCurrentGroupIterator(GroupIterator collection)
Set the current grouping iterator. |
void |
setCurrentMode(Mode mode)
Set the current mode. |
void |
setCurrentRegexIterator(net.sf.saxon.regex.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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XPathContextMajor(Controller c)
public XPathContextMajor(Item item,
Configuration config)
| Method Detail |
public XPathContextMajor newContext()
newContext in interface XPathContextnewContext in class XPathContextMinorpublic static XPathContextMajor newContext(XPathContextMinor p)
public XPathContextMajor.XSLTContext getXSLTContext()
getXSLTContext in interface XPathContextgetXSLTContext in class XPathContextMinorpublic ParameterSet getLocalParameters()
getLocalParameters in interface XPathContextgetLocalParameters in class XPathContextMinorpublic void setLocalParameters(ParameterSet localParameters)
localParameters - the supplied parameterspublic ParameterSet getTunnelParameters()
getTunnelParameters in interface XPathContextgetTunnelParameters in class XPathContextMinorpublic 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 XPathContextsetOrigin in class XPathContextMinorpublic StackFrame getStackFrame()
getStackFrame in interface XPathContextgetStackFrame in class XPathContextMinor
public void setStackFrame(SlotManager map,
ValueRepresentation[] variables)
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 ValueRepresentation evaluateLocalVariable(int slotnumber)
evaluateLocalVariable in interface XPathContextevaluateLocalVariable in class XPathContextMinor
public void setLocalVariable(int slotnumber,
ValueRepresentation value)
setLocalVariable in interface XPathContextsetLocalVariable in class XPathContextMinorpublic void setCurrentMode(Mode mode)
mode - the new current modepublic Mode getCurrentMode()
getCurrentMode in interface XPathContextgetCurrentMode in class XPathContextMinorpublic void setCurrentTemplate(Template template)
template - the current templatepublic Template getCurrentTemplate()
getCurrentTemplate in interface XPathContextgetCurrentTemplate in class XPathContextMinorpublic void setCurrentGroupIterator(GroupIterator collection)
collection - the new current GroupIteratorpublic GroupIterator getCurrentGroupIterator()
getCurrentGroupIterator in interface XPathContextgetCurrentGroupIterator in class XPathContextMinorpublic void setCurrentRegexIterator(net.sf.saxon.regex.RegexIterator currentJRegexIterator)
currentJRegexIterator - the current regex iteratorpublic net.sf.saxon.regex.RegexIterator getCurrentRegexIterator()
getCurrentRegexIterator in interface XPathContextgetCurrentRegexIterator in class XPathContextMinor
public boolean useLocalParameter(int fingerprint,
LocalParam binding,
boolean isTunnel)
throws XPathException
useLocalParameter in interface XPathContextuseLocalParameter in class XPathContextMinorfingerprint - 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 | |||||||||