Giter VIP home page Giter VIP logo

jenerate's Introduction

Jenerate - Java Generation plugin for Eclipse

Jenerate is a Java Generation plugin for Eclipse that provides customizable code generation for Java classes.

Jenerate provides code generation for methods like:

  • hashCode() and equals() (ALT+SHIFT+G then H)
  • toString() (ALT+SHIFT+G then S)
  • compareTo() (ALT+SHIFT+G then C)

The generated methods can use internal java.util.Objects class or external libraries such as Apache commons-lang[3] Builders and Google Guava.

A certain number of parameters can be customized in the Jenerate preference page in eclipse (Window > Preferences > Java > Jenerate).

You can install the Jenerate plugin via the Eclipse Marketplace or using the Jenerate update site from within Eclipse:

http://maximeaudrain.github.io/update/

You can access previous versions of the plugin at http://maximeaudrain.github.io/update/X.X.X where X.X.X is the version you want to retrieve

Version 1.0.3:

  • Fixed a bug where the "Append super" option is disabled if the superclass is included a jar file (Contribution by Helospark)

Version 1.0.2:

  • Support for Class#cast(Object) and Class#isInstance(Object) for equals() and hashCode() generation. (Contribution by Martin Filser)

Version 1.0.1:

  • Added generation strategies for hashCode() and equals() using the internal java.util.Objects class.
  • Allow use of two new ToString styles provided with the version 3.4 of Apache Commons lang.

Version 1.0.0:

  • Added Google Guava support for all methods content generation.
  • Add tooltip on the toString dialog that shows how the output of the toString() would look like (based on the javadoc). (Contribution by mwensveen-nl)
  • Add the option to use getClass instead of instanceof in the equals method. (Contribution by mwensveen-nl)
  • Changed javadoc to use @inheritdoc instead of the old style of javadoc. (Contribution by melloware)

Jenerate is a fork of commons4e. It was forked to make it alive again and respond to users need for new functionalities.

Jenerate is under the EPL v1.0.

Any contributions are welcome!

The plugin is currently built using Gradle.

Please read the eclipse-config.txt in org.jenerate/setup folder : this is the current configuration I use for eclipse, so if you apply the same configuration, you should be able to commit without changes in terms of formatting.

jenerate's People

Contributors

helospark avatar maximeaudrain avatar mfilser avatar mwensveen-nl avatar ptemplier avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.