| java.lang.Object org.apache.xpath.Expression org.apache.xpath.functions.Function
All known Subclasses: org.apache.xpath.functions.FuncPosition, org.apache.xpath.functions.FuncLast, org.apache.xpath.functions.FuncExtFunction, org.apache.xpath.functions.FuncCurrent, org.apache.xpath.functions.FuncFalse, org.apache.xpath.functions.FuncTrue, org.apache.xpath.functions.FunctionOneArg,
Function | abstract public class Function extends Expression (Code) | | This is a superclass of all XPath functions. This allows two
ways for the class to be called. One method is that the
super class processes the arguments and hands the results to
the derived class, the other method is that the derived
class may process it's own arguments, which is faster since
the arguments don't have to be added to an array, but causes
a larger code footprint.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
callArgVisitors | public void callArgVisitors(XPathVisitor visitor)(Code) | | Call the visitors for the function arguments.
|
checkNumberArgs | public void checkNumberArgs(int argNum) throws WrongNumberArgsException(Code) | | Check that the number of arguments passed to this function is correct.
This method is meant to be overloaded by derived classes, to check for
the number of arguments for a specific function type. This method is
called by the compiler for static number of arguments checking.
Parameters: argNum - The number of arguments that is being passed to the function. throws: WrongNumberArgsException - |
postCompileStep | public void postCompileStep(Compiler compiler)(Code) | | This function is currently only being used by Position()
and Last(). See respective functions for more detail.
|
reportWrongNumberArgs | protected void reportWrongNumberArgs() throws WrongNumberArgsException(Code) | | Constructs and throws a WrongNumberArgException with the appropriate
message for this function object. This method is meant to be overloaded
by derived classes so that the message will be as specific as possible.
throws: WrongNumberArgsException - |
setArg | public void setArg(Expression arg, int argNum) throws WrongNumberArgsException(Code) | | Set an argument expression for a function. This method is called by the
XPath compiler.
Parameters: arg - non-null expression that represents the argument. Parameters: argNum - The argument number index. throws: WrongNumberArgsException - If the argNum parameter is beyond what is specified for this function. |
Methods inherited from org.apache.xpath.Expression | public DTMIterator asIterator(XPathContext xctxt, int contextNode) throws javax.xml.transform.TransformerException(Code)(Java Doc) public DTMIterator asIteratorRaw(XPathContext xctxt, int contextNode) throws javax.xml.transform.TransformerException(Code)(Java Doc) public int asNode(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc) public void assertion(boolean b, java.lang.String msg)(Code)(Java Doc) public boolean bool(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc) public boolean canTraverseOutsideSubtree()(Code)(Java Doc) abstract public boolean deepEquals(Expression expr)(Code)(Java Doc) public void error(XPathContext xctxt, String msg, Object[] args) throws javax.xml.transform.TransformerException(Code)(Java Doc) public XObject execute(XPathContext xctxt, int currentNode) throws javax.xml.transform.TransformerException(Code)(Java Doc) public XObject execute(XPathContext xctxt, int currentNode, DTM dtm, int expType) throws javax.xml.transform.TransformerException(Code)(Java Doc) abstract public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc) public XObject execute(XPathContext xctxt, boolean destructiveOK) throws javax.xml.transform.TransformerException(Code)(Java Doc) public void executeCharsToContentHandler(XPathContext xctxt, ContentHandler handler) throws javax.xml.transform.TransformerException, org.xml.sax.SAXException(Code)(Java Doc) public void exprAddChild(ExpressionNode n, int i)(Code)(Java Doc) public ExpressionNode exprGetChild(int i)(Code)(Java Doc) public int exprGetNumChildren()(Code)(Java Doc) public ExpressionNode exprGetParent()(Code)(Java Doc) public void exprSetParent(ExpressionNode n)(Code)(Java Doc) abstract public void fixupVariables(java.util.Vector vars, int globalsSize)(Code)(Java Doc) public int getColumnNumber()(Code)(Java Doc) public ExpressionNode getExpressionOwner()(Code)(Java Doc) public int getLineNumber()(Code)(Java Doc) public String getPublicId()(Code)(Java Doc) public String getSystemId()(Code)(Java Doc) public boolean isNodesetExpr()(Code)(Java Doc) final protected boolean isSameClass(Expression expr)(Code)(Java Doc) public boolean isStableNumber()(Code)(Java Doc) public double num(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc) public void warn(XPathContext xctxt, String msg, Object[] args) throws javax.xml.transform.TransformerException(Code)(Java Doc) public XMLString xstr(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc)
|
|
|