Categories


Authors:
osmedile
Apache

Check My Vars

Products: IntelliJ IDEA

Vendor: Olivier Smedile

Email:

Website: http://code.google.com/p/idea-check-my-vars/

SourceCode: Check_My_Vars_3711.zip

Bugtracker page

Description:

Generate code according to Annotation

Configure template to generate code depending on annotation and type of parameter.
For example, code like:
public void minMaxNumber(@MinMax(min = 1, max = 5)int nb) {
}

Can generate this:
public void minMaxNumber(@MinMax(min = 1, max = 5)int nb) {
if (nb < 1 || nb > 5) {
throw new IllegalArgumentException("nb value must be between 1 and 5 (inclusive)");
}
}


Action is available under "Generate..." menu.
On first use, the plugin will ask you to generate a sample if it found nothing to generate.


Future release will include a support for javadoc tag as an alternative to Annotation, so JDK 1.4 or earlier users can use this plugin

Downloads: 2309
Rating:
Participated in rating: 0
Version Since Build Until Build File/URL Size (Kb) Date Details
1.0.1. 72.7361. . Download 73.92 2008-10-30 01:41:02 details
. .
1 update is hidden show all updates
Screenshot #2285
Screenshot #2283
Screenshot #2284

Comments:

sheerbeer
2011-07-01 10:50:27
Superb article mate but how do get your rss feed? Please sending us an e-mail with instructions? Ta
.