|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.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.
| 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 | |
Value |
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 |
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(RegexIterator currentRegexIterator)
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,
Value 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,
Value[] 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 net.sf.saxon.expr.XPathContextMinor |
changeOutputDestination, getCaller, getCollation, getContextItem, getContextPosition, getController, getCurrentIterator, getDefaultCollation, getLast, getOrigin, getOriginatingConstructType, getReceiver, isAtLast, newCleanContext, newMinorContext, setCaller, setCurrentIterator, setOriginatingConstructType, setReceiver, setTemporaryReceiver |
| 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 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,
Value[] 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 Value evaluateLocalVariable(int slotnumber)
evaluateLocalVariable in interface XPathContextevaluateLocalVariable in class XPathContextMinor
public void setLocalVariable(int slotnumber,
Value 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(RegexIterator currentRegexIterator)
currentRegexIterator - the current regex iteratorpublic 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 | |||||||||