Published October 9, 2020 | Version v1
Journal article Open

JAVA MODULAR EXTENSION FOR OPERATOR OVERLOADING

Authors/Creators

  • 1. Ural Federal University

Description

The paper introduces a modular extension (plugin) for Java language compilers and Integrated Development Environments (IDE) which adds operator overloading feature to Java language while preserving backward compatibility. The extension use the idea of library-based language extensibility similar to SugarJ[1]. But unlike most language extensions, it works directly inside the compiler and does not have any external preprocessors. This gives much faster compilation, better language compatibility and support of native developer tools (IDE, build tools). The extension plugs into javac and Eclipse Java compilers as well as in all tools whose use the compilers such as IDEs (Netbeans, Eclipse, IntelliJ IDEA), build tools (ant, maven, gradle), etc. No compiler, IDE, build tools modification needed. Just add a jar library to classpath and/or install a plugin to your IDE. The paper also discuss on how to build such Java compiler extensions. The extension source code is open on http://amelentev.github.io/java-oo/

Files

4214ijpla01.pdf

Files (706.8 kB)

Name Size Download all
md5:36b8d316d3d51ff353d26823a48cc5f4
706.8 kB Preview Download