Class FuncConcat

All Implemented Interfaces:
SourceLocator, ExpressionNode, XPathVisitable

public class FuncConcat extends FunctionMultiArgs
Execute the Concat() function.
  • Constructor Details

    • FuncConcat

      public FuncConcat()
  • Method Details

    • execute

      public XObject execute(XPathContext xctxt) throws TransformerException
      Execute an expression in the XPath runtime context, and return the result of the expression.
      Overrides:
      execute in class Function
      Parameters:
      xctxt - The XPath runtime context.
      Returns:
      The result of the expression in the form of a XObject.
      Throws:
      TransformerException - if a runtime exception occurs.
    • checkNumberArgs

      public void checkNumberArgs(int argNum) throws WrongNumberArgsException
      Check that the number of arguments passed to this function is correct. This method is meant to be overloaded by derived classes, to check for the number of arguments for a specific function type. This method is called by the compiler for static number of arguments checking.
      Overrides:
      checkNumberArgs in class FunctionMultiArgs
      Parameters:
      argNum - The number of arguments that is being passed to the function.
      Throws:
      WrongNumberArgsException - if any
    • reportWrongNumberArgs

      protected void reportWrongNumberArgs() throws WrongNumberArgsException
      Constructs and throws a WrongNumberArgException with the appropriate message for this function object. This method is meant to be overloaded by derived classes so that the message will be as specific as possible.
      Overrides:
      reportWrongNumberArgs in class FunctionMultiArgs
      Throws:
      WrongNumberArgsException - if any