| org.apache.xpath.functions.Function org.apache.xpath.functions.FunctionOneArg org.apache.xpath.functions.FunctionDef1Arg
All known Subclasses: org.apache.xpath.functions.FuncNamespace, org.apache.xpath.functions.FuncStringLength, org.apache.xpath.functions.FuncGenerateId, org.apache.xpath.functions.FuncQname, org.apache.xpath.functions.FuncLocalPart, org.apache.xpath.functions.FuncDoclocation, org.apache.xpath.functions.FuncNormalizeSpace, org.apache.xpath.functions.FuncString, org.apache.xpath.functions.FuncNumber,
FunctionDef1Arg | public class FunctionDef1Arg extends FunctionOneArg (Code) | | Base class for functions that accept one argument that can be defaulted if
not specified.
|
Method Summary | |
public boolean | Arg0IsNodesetExpr() Tell if the expression is a nodeset expression. | 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. | protected int | getArg0AsNode(XPathContext xctxt) Execute the first argument expression that is expected to return a
nodeset. | protected double | getArg0AsNumber(XPathContext xctxt) Execute the first argument expression that is expected to return a
number. | protected XMLString | getArg0AsString(XPathContext xctxt) Execute the first argument expression that is expected to return a
string. | protected void | reportWrongNumberArgs() Constructs and throws a WrongNumberArgException with the appropriate
message for this function object. |
serialVersionUID | final static long serialVersionUID(Code) | | |
Arg0IsNodesetExpr | public boolean Arg0IsNodesetExpr()(Code) | | Tell if the expression is a nodeset expression.
true if the expression can be represented as a nodeset. |
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 - if the number of arguments is not 0 or 1. |
getArg0AsNode | protected int getArg0AsNode(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code) | | Execute the first argument expression that is expected to return a
nodeset. If the argument is null, then return the current context node.
Parameters: xctxt - Runtime XPath context. The first node of the executed nodeset, or the current contextnode if the first argument is null. throws: javax.xml.transform.TransformerException - if an error occurs whileexecuting the argument expression. |
getArg0AsNumber | protected double getArg0AsNumber(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code) | | Execute the first argument expression that is expected to return a
number. If the argument is null, then get the number value from the
current context node.
Parameters: xctxt - Runtime XPath context. The number value of the first argument, or the number value of thecurrent context node if the first argument is null. throws: javax.xml.transform.TransformerException - if an error occurs whileexecuting the argument expression. |
getArg0AsString | protected XMLString getArg0AsString(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code) | | Execute the first argument expression that is expected to return a
string. If the argument is null, then get the string value from the
current context node.
Parameters: xctxt - Runtime XPath context. The string value of the first argument, or the string value of thecurrent context node if the first argument is null. throws: javax.xml.transform.TransformerException - if an error occurs whileexecuting the argument expression. |
Fields inherited from org.apache.xpath.functions.Function | final static long serialVersionUID(Code)(Java Doc)
|
|
|