/** * Enables to define the arguments (associated with * the function expression) based on the given arguments names. * * @param argumentsNames the arguments names (variadic) * comma separated list * * @see Argument * @see RecursiveArgument */ public void defineArguments(String... argumentsNames) { if (functionBodyType == Function.BODY_RUNTIME) { functionExpression.defineArguments(argumentsNames); parametersNumber = functionExpression.getArgumentsNumber() - countRecursiveArguments(); } } /**
/** * Adds arguments (variadic) to the function expression definition. * * @param arguments the arguments list * (comma separated list) * @see Argument * @see RecursiveArgument */ public void addArguments(Argument... arguments) { if (functionBodyType == Function.BODY_RUNTIME) { functionExpression.addArguments(arguments); parametersNumber = functionExpression.getArgumentsNumber() - countRecursiveArguments(); } } /**
/** * Removes first occurrences of the arguments * associated with the function expression. * * @param argumentsNames the arguments names * (variadic parameters) comma separated * list * * @see Argument * @see RecursiveArgument */ public void removeArguments(String... argumentsNames) { if (functionBodyType == Function.BODY_RUNTIME) { functionExpression.removeArguments(argumentsNames); parametersNumber = functionExpression.getArgumentsNumber() - countRecursiveArguments(); } } /**
/** * Enables to define the argument (associated with the function expression) * based on the argument name and the argument value. * * @param argumentName the argument name * @param argumentValue the the argument value * * @see Argument * @see RecursiveArgument */ public void defineArgument(String argumentName, double argumentValue) { if (functionBodyType == Function.BODY_RUNTIME) { functionExpression.defineArgument(argumentName, argumentValue); parametersNumber = functionExpression.getArgumentsNumber() - countRecursiveArguments(); } } /**
/** * Removes first occurrences of the arguments * associated with the function expression. * * @param arguments the arguments (variadic parameters) * comma separated list * * @see Argument * @see RecursiveArgument */ public void removeArguments(Argument... arguments) { if (functionBodyType == Function.BODY_RUNTIME) { functionExpression.removeArguments(arguments); parametersNumber = functionExpression.getArgumentsNumber() - countRecursiveArguments(); } } /**
parametersNumber = functionExpression.getArgumentsNumber() - countRecursiveArguments(); description = ""; functionBodyType = BODY_RUNTIME;
parametersNumber = functionExpression.getArgumentsNumber() - countRecursiveArguments(); description = ""; functionBodyType = BODY_RUNTIME;
for (String argName : argumentsNames) functionExpression.addArguments(new Argument(argName)); parametersNumber = functionExpression.getArgumentsNumber() - countRecursiveArguments(); description = ""; functionBodyType = BODY_RUNTIME;