SQLcl is the core scripting library for Oracle SQL Developer. That library has been factored out and wrappered with a command line to bring SQLcl.
The tool can be downloaded from Oracle.com here: http://www.oracle.com/technetwork/developer-tools/sqlcl/overview/index.html
SQLcl scripting is based on Java's JSR-223 which allows scripting languages to be executed from the Java VM. There are a number of languages that can be plugged in with the NashHorn Javascript engine being included in Java. A list of languages can be found here
More Here: Scripting
SQLcl is written in java and those java classes can also be leveraged directly. This can facilite running sql scripts from existing java programs. There are a lot of features that can be leveraged and this will be exapanding in the /java/ folder.
More Here: Java