java.io.Serializable
, javax.xml.transform.SourceLocator
, ExpressionNode
, XPathVisitable
public class FuncLast extends Function
Constructor | Description |
---|---|
FuncLast() |
Modifier and Type | Method | Description |
---|---|---|
XObject |
execute(XPathContext xctxt) |
Execute the function.
|
void |
fixupVariables(java.util.Vector vars,
int globalsSize) |
No arguments to process, so this does nothing.
|
int |
getCountOfContextNodeList(XPathContext xctxt) |
Get the position in the current context node list.
|
void |
postCompileStep(Compiler compiler) |
Figure out if we're executing a toplevel expression.
|
asIterator, asIteratorRaw, asNode, assertion, bool, canTraverseOutsideSubtree, error, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isStableNumber, num, warn, xstr
callArgVisitors, callVisitors, checkNumberArgs, deepEquals, setArg
public void postCompileStep(Compiler compiler)
postCompileStep
in class Function
public int getCountOfContextNodeList(XPathContext xctxt) throws javax.xml.transform.TransformerException
xctxt
- non-null reference to XPath runtime context.javax.xml.transform.TransformerException
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
public void fixupVariables(java.util.Vector vars, int globalsSize)
fixupVariables
in class Expression
vars
- List of QNames that correspond to variables. This list
should be searched backwards for the first qualified name that
corresponds to the variable reference qname. The position of the
QName in the vector from the start of the vector will be its position
in the stack frame (but variables above the globalsTop value will need
to be offset to the current stack frame).
NEEDSDOC @param globalsSizeCopyright © 2014 Apache XML Project. All Rights Reserved.