public class FuncDocument extends Function2Args
| Constructor and Description |
|---|
FuncDocument() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkNumberArgs(int argNum)
Overide the superclass method to allow one or two arguments.
|
void |
error(XPathContext xctxt,
String msg,
Object[] args)
Tell the user of an error, and probably throw an
exception.
|
XObject |
execute(XPathContext xctxt)
Execute the function.
|
boolean |
isNodesetExpr()
Tell if the expression is a nodeset expression.
|
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, getArg1, setArggetArg0, getExpression, setExpressioncallVisitors, postCompileStepasIterator, asIteratorRaw, asNode, assertion, bool, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isSameClass, isStableNumber, num, xstrpublic XObject execute(XPathContext xctxt) throws TransformerException
execute in class Functionxctxt - The current execution context.TransformerExceptionpublic void error(XPathContext xctxt, String msg, Object[] args) throws TransformerException
error in class Expressionxctxt - The XPath runtime state.msg - The error message keyargs - Arguments to be used in the error messageXSLProcessorException - thrown if the active ProblemListener and XPathContext decide
the error condition is severe enough to halt processing.TransformerExceptionpublic void warn(XPathContext xctxt, String msg, Object[] args) throws TransformerException
warn in class Expressionxctxt - The XPath runtime state.msg - Warning message keyargs - Arguments to be used in the warning messageXSLProcessorException - thrown if the active ProblemListener and XPathContext decide
the error condition is severe enough to halt processing.TransformerExceptionpublic void checkNumberArgs(int argNum)
throws WrongNumberArgsException
checkNumberArgs in class Function2ArgsargNum - Number of arguments passed in to this functionWrongNumberArgsExceptionprotected void reportWrongNumberArgs()
throws WrongNumberArgsException
reportWrongNumberArgs in class Function2ArgsWrongNumberArgsExceptionpublic boolean isNodesetExpr()
isNodesetExpr in class ExpressionCopyright © 2017 JBoss by Red Hat. All rights reserved.