MkAccessors is a utility to make a series of Java "accessors"
(set/get methods a la JavaBeans pattern).
You're probably better off using an IDE!
Primarily meant for command-line use, but can be used from within
other tools (note that all methods are static).
I use it (with a shell script mkAccessors, which is
java -classpath $HOME/classes/ext/com-darwinsys-all.jar \
com.darwinsys.util.MkAccessors $*
or something similar); in the vi or vim editors you just say
:r !mkAccessors firstName lastName address
to generate the setFirstName/getFirstName, etc. methods
right in the Java source while you're editing.
Your mileage may vary if you use a less-powerful editing tool. |