public class FunctionDef1Arg extends FunctionOneArg
Constructor and Description |
---|
FunctionDef1Arg() |
Modifier and Type | Method and Description |
---|---|
boolean |
Arg0IsNodesetExpr()
Tell if the expression is a nodeset expression.
|
boolean |
canTraverseOutsideSubtree()
Tell if this expression or it's subexpressions can traverse outside
the current subtree.
|
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.
|
callArgVisitors, deepEquals, fixupVariables, getArg0, getExpression, setArg, setExpression
callVisitors, execute, postCompileStep
asIterator, asIteratorRaw, asNode, assertion, bool, error, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isSameClass, isStableNumber, num, warn, xstr
protected int getArg0AsNode(XPathContext xctxt) throws TransformerException
xctxt
- Runtime XPath context.TransformerException
- if an error occurs while
executing the argument expression.public boolean Arg0IsNodesetExpr()
protected XMLString getArg0AsString(XPathContext xctxt) throws TransformerException
xctxt
- Runtime XPath context.TransformerException
- if an error occurs while
executing the argument expression.protected double getArg0AsNumber(XPathContext xctxt) throws TransformerException
xctxt
- Runtime XPath context.TransformerException
- if an error occurs while
executing the argument expression.public void checkNumberArgs(int argNum) throws WrongNumberArgsException
checkNumberArgs
in class FunctionOneArg
argNum
- The number of arguments that is being passed to the function.WrongNumberArgsException
- if the number of arguments is not 0 or 1.protected void reportWrongNumberArgs() throws WrongNumberArgsException
reportWrongNumberArgs
in class FunctionOneArg
WrongNumberArgsException
public boolean canTraverseOutsideSubtree()
canTraverseOutsideSubtree
in class FunctionOneArg
Copyright © 2017 JBoss by Red Hat. All rights reserved.