/** * Handle a simple binary function (both children of the node are arguments * to the function). */ protected FunctionNode binary(final SimpleNode node, final URI functionURI) throws VisitorException { return new FunctionNode(functionURI, null/* scalarValues */, new ValueExpressionNode[] { left(node), right(node) }); }
/** * Handle a simple binary function (both children of the node are arguments * to the function). */ protected FunctionNode binary(final SimpleNode node, final URI functionURI) throws VisitorException { return new FunctionNode(functionURI, null/* scalarValues */, new ValueExpressionNode[] { left(node), right(node) }); }
/** * Handle a simple ternary function (there are three children of the node * which are the arguments to the function). */ protected FunctionNode ternary(final SimpleNode node, final URI functionURI) throws VisitorException { return new FunctionNode(functionURI, null/* scalarValues */, new ValueExpressionNode[] { left(node), right(node), (ValueExpressionNode) node.jjtGetChild(2).jjtAccept( this, null) }); }
/** * Handle a simple ternary function (there are three children of the node * which are the arguments to the function). */ protected FunctionNode ternary(final SimpleNode node, final URI functionURI) throws VisitorException { return new FunctionNode(functionURI, null/* scalarValues */, new ValueExpressionNode[] { left(node), right(node), (ValueExpressionNode) node.jjtGetChild(2).jjtAccept( this, null) }); }
/** * Handle a function with four arguments (there are four children of the * node which are the arguments to the function). */ protected FunctionNode quadary(final SimpleNode node, final URI functionURI) throws VisitorException { return new FunctionNode(functionURI, null/* scalarValues */, new ValueExpressionNode[] { left(node), right(node), (ValueExpressionNode) node.jjtGetChild(2).jjtAccept( this, null), (ValueExpressionNode) node.jjtGetChild(3).jjtAccept( this, null)}); }
/** * Handle a function with four arguments (there are four children of the * node which are the arguments to the function). */ protected FunctionNode quadary(final SimpleNode node, final URI functionURI) throws VisitorException { return new FunctionNode(functionURI, null/* scalarValues */, new ValueExpressionNode[] { left(node), right(node), (ValueExpressionNode) node.jjtGetChild(2).jjtAccept( this, null), (ValueExpressionNode) node.jjtGetChild(3).jjtAccept( this, null)}); }