Class CatFunction

  • All Implemented Interfaces:
    java.lang.Iterable<GroupingExpression>

    public class CatFunction
    extends FunctionNode
    This class represents a cat-function in a GroupingExpression. It evaluates to a byte array that equals the concatenation of the binary result of all arguments in the order they were given to the constructor.
    Author:
    Simon Thoresen Hult, bratseth
    • Constructor Detail

      • CatFunction

        public CatFunction​(GroupingExpression arg1,
                           GroupingExpression arg2,
                           GroupingExpression... argN)
        Constructs a new instance of this class.
        Parameters:
        arg1 - The first compulsory argument.
        arg2 - The second compulsory argument.
        argN - The optional arguments.
    • Method Detail

      • newInstance

        public static CatFunction newInstance​(java.util.List<GroupingExpression> args)
        Constructs a new instance of this class from a list of arguments.
        Parameters:
        args - The arguments to pass to the constructor.
        Returns:
        The created instance.
        Throws:
        java.lang.IllegalArgumentException - Thrown if the number of arguments is less than 2.