|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.XPathContext
This class represents a context in which an XPath expression is evaluated.
Constructor Summary | |
XPathContext(Controller c)
Constructor should only be called by the Controller, which acts as a XPathContext factory. |
|
XPathContext(Item item)
Constructor for use in free-standing Java applications. |
|
XPathContext(XPathContext c)
Constructor to create one XPathContext as a copy of another |
Method Summary | |
Value |
evaluateLocalVariable(int slotnumber)
Get the value of a local variable, identified by its slot number |
Comparator |
getCollation(String name)
Get a named collation |
Item |
getContextItem()
Get the context item (XPath 2.0) |
int |
getContextPosition()
Get the context position (the position of the context node in the context node list) |
Controller |
getController()
Get the Controller. |
SequenceIterator |
getCurrentIterator()
Get the current iterator |
Item |
getCurrentStylesheetItem()
Get the current stylesheet item: supports the XSLT current() function |
Comparator |
getDefaultCollation()
Get the default collation |
int |
getLast()
Get the context size (the position of the last item in the current node list) |
Object[] |
getLocalVariableFrame()
Get a reference to the local stack frame for variables. |
boolean |
isAtLast()
Determine whether the context position is the same as the context size that is, whether position()=last() |
XPathContext |
newContext()
Construct a new context as a copy of another |
void |
setCurrentIterator(SequenceIterator iter)
Set a new sequence iterator. |
void |
setLocalVariable(int slotnumber,
Value value)
Set the value of a local variable, identified by its slot number |
void |
setLocalVariableFrame(Object[] variables)
Set the local stack frame. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XPathContext(Controller c)
public XPathContext(XPathContext c)
public XPathContext(Item item)
Method Detail |
public XPathContext newContext()
public Controller getController()
public void setCurrentIterator(SequenceIterator iter)
public SequenceIterator getCurrentIterator()
public int getContextPosition() throws XPathException
XPathException
public Item getContextItem()
public int getLast() throws XPathException
XPathException
public boolean isAtLast() throws XPathException
XPathException
public Item getCurrentStylesheetItem() throws XPathException
XPathException
public Comparator getCollation(String name) throws XPathException
XPathException
public Comparator getDefaultCollation()
public Object[] getLocalVariableFrame()
public void setLocalVariableFrame(Object[] variables)
public Value evaluateLocalVariable(int slotnumber)
public void setLocalVariable(int slotnumber, Value value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |