Class FunctionNode

    • Method Detail

      • ofExpressions

        public static FunctionNode ofExpressions​(java.lang.String functionName,
                                                 ToExpression... arguments)
        Constructs a FunctionNode for the given function name and arguments.
        Parameters:
        functionName - the function name.
        arguments - zero or more expressions as arguments to the function.
        Returns:
        the FunctionNode.
      • ofExpressions

        public static FunctionNode ofExpressions​(java.lang.String functionName,
                                                 FromSourceLocation sourceLocation,
                                                 ToExpression... arguments)
        Constructs a FunctionNode for the given function name and arguments.
        Parameters:
        functionName - the function name.
        sourceLocation - the source location for the function.
        arguments - zero or more expressions as arguments to the function.
        Returns:
        the FunctionNode.
      • builder

        public static FunctionNode.Builder builder()
        Returns a new builder instance.
        Returns:
        the new builder instance.
      • createFunction

        public Expression createFunction()
        Returns an expression representing this function.
        Returns:
        this function as an expression.
      • getName

        public java.lang.String getName()
        Gets the name for the function described in this node.
        Returns:
        the name for the function.
      • getArguments

        public java.util.List<Expression> getArguments()
        Gets the list of argument Expressions to the function described in this node.
        Returns:
        the list of arguments.
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object