| java.lang.Object org.apache.xpath.Expression org.apache.xpath.functions.Function org.apache.xpath.functions.FunctionOneArg org.apache.xpath.functions.Function2Args org.apache.xpath.functions.Function3Args
All known Subclasses: org.apache.xpath.functions.FuncSubstring, org.apache.xpath.functions.FunctionMultiArgs, org.apache.xpath.functions.FuncTranslate, org.apache.xalan.templates.FuncFormatNumb,
Function3Args | public class Function3Args extends Function2Args (Code) | | Base class for functions that accept three arguments.
|
Method Summary | |
public void | callArgVisitors(XPathVisitor visitor) | public boolean | canTraverseOutsideSubtree() Tell if this expression or it's subexpressions can traverse outside
the current subtree. | public void | checkNumberArgs(int argNum) Check that the number of arguments passed to this function is correct. | public boolean | deepEquals(Expression expr) | public void | fixupVariables(java.util.Vector vars, int globalsSize) This function is used to fixup variables from QNames to stack frame
indexes at stylesheet build time.
Parameters: vars - List of QNames that correspond to variables. | public Expression | getArg2() Return the third argument passed to the function (at index 2). | protected void | reportWrongNumberArgs() Constructs and throws a WrongNumberArgException with the appropriate
message for this function object. | public void | setArg(Expression arg, int argNum) Set an argument expression for a function. |
m_arg2 | Expression m_arg2(Code) | | The third argument passed to the function (at index 2).
|
serialVersionUID | final static long serialVersionUID(Code) | | |
canTraverseOutsideSubtree | public boolean canTraverseOutsideSubtree()(Code) | | Tell if this expression or it's subexpressions can traverse outside
the current subtree.
true if traversal outside the context node's subtree can occur. |
checkNumberArgs | public void checkNumberArgs(int argNum) throws WrongNumberArgsException(Code) | | Check that the number of arguments passed to this function is correct.
Parameters: argNum - The number of arguments that is being passed to the function. throws: WrongNumberArgsException - |
fixupVariables | public void fixupVariables(java.util.Vector vars, int globalsSize)(Code) | | This function is used to fixup variables from QNames to stack frame
indexes at stylesheet build time.
Parameters: 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). |
getArg2 | public Expression getArg2()(Code) | | Return the third argument passed to the function (at index 2).
An expression that represents the third argument passed to the function. |
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 greater than 2. |
Fields inherited from org.apache.xpath.functions.Function | final static long serialVersionUID(Code)(Java Doc)
|
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)
|
|
|