public class FuncFormatNumb extends Function3Args
Constructor and Description |
---|
FuncFormatNumb() |
Modifier and Type | Method and Description |
---|---|
void |
checkNumberArgs(int argNum)
Overide the superclass method to allow one or two arguments.
|
XObject |
execute(XPathContext xctxt)
Execute the function.
|
protected void |
reportWrongNumberArgs()
Constructs and throws a WrongNumberArgException with the appropriate
message for this function object.
|
void |
warn(XPathContext xctxt,
String msg,
Object[] args)
Warn the user of a problem.
|
callArgVisitors, canTraverseOutsideSubtree, deepEquals, fixupVariables, getArg2, setArg
getArg1
getArg0, getExpression, setExpression
callVisitors, 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, xstr
public XObject execute(XPathContext xctxt) throws TransformerException
execute
in class Function
xctxt
- The current execution context.TransformerException
public void warn(XPathContext xctxt, String msg, Object[] args) throws TransformerException
warn
in class Expression
xctxt
- The XPath runtime state.msg
- Warning message keyargs
- Arguments to be used in warning messageXSLProcessorException
- thrown if the active ProblemListener and XPathContext decide
the error condition is severe enough to halt processing.TransformerException
public void checkNumberArgs(int argNum) throws WrongNumberArgsException
checkNumberArgs
in class Function3Args
argNum
- Number of arguments passed inWrongNumberArgsException
protected void reportWrongNumberArgs() throws WrongNumberArgsException
reportWrongNumberArgs
in class Function3Args
WrongNumberArgsException
Copyright © 2018 JBoss by Red Hat. All rights reserved.