/** * Enables to define the arguments (associated with * the expression) based on the given arguments names. * * @param argumentsNames the arguments names (variadic) * comma separated list * * @see Argument * @see RecursiveArgument */ public void defineArguments(params String[] argumentsNames) { foreach (String argName in argumentsNames) { Argument arg = new Argument(argName); arg.addRelatedExpression(this); argumentsList.Add(arg); } setExpressionModifiedFlag(); }
/** * Enables to define the argument (associated with the 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) { Argument arg = new Argument(argumentName, argumentValue); arg.addRelatedExpression(this); argumentsList.Add(arg); setExpressionModifiedFlag(); }