Scriptlets are the bridges that get the Java Code in iReport. iReport.scriptlet is a Java class that extends JRDefaultScriptlet where one can write user defined functions that can later be accessed easily in the report.