/** * Removes all arguments associated with the expression. * * @see Argument * @see RecursiveArgument */ public void removeAllArguments() { for (Argument arg : argumentsList) arg.removeRelatedExpression(this); argumentsList.clear(); setExpressionModifiedFlag(); } /*=================================================
/** * Removes first occurrences of the arguments * associated with the expression. * * @param arguments the arguments (variadic parameters) * comma separated list * * @see Argument * @see RecursiveArgument */ public void removeArguments(Argument... arguments) { for (Argument argument : arguments) { if (argument != null) { argumentsList.remove(argument); argument.removeRelatedExpression(this); } } setExpressionModifiedFlag(); } /**
/** * Removes first occurrences of the arguments * associated with the expression. * * @param argumentsNames the arguments names * (variadic parameters) comma separated * list * * @see Argument * @see RecursiveArgument */ public void removeArguments(String... argumentsNames) { for (String argumentName : argumentsNames) { int argumentIndex = getArgumentIndex(argumentName); if (argumentIndex != NOT_FOUND) { Argument arg = argumentsList.get(argumentIndex); arg.removeRelatedExpression(this); argumentsList.remove(argumentIndex); } } setExpressionModifiedFlag(); } /**