Command Line Options
Usage: /home/dave/bin/jnewclass [ options ] [ class-name ]
Options:
- -g or --gui
- Run in GUI mode. All other options will be ignored.
- -h or --help
- Show this help text.
- -H or --quick-help
- Show short help text.
- --version or --warranty or --about
- Show version / warranty information.
- -i or --implements interface[,interface...]
- Implement the abstract methods from the given interfaces.
- -e or --extends class
- Extend `class' and implement its abstract methods.
- -m or --methods name,type[,name,type...]
- Define public method `name', returning `type'.
- -M or --private-methods name,type[,name,type...]
- Define private method `name' returning `type'.
- -s or --static-methods name,type[,name,type...]
- Define public static method `name' returning `type'.
- -S or --private-static-methods name,type[,name,type...]
- Define private static method `name' returning `type'.
- -z or --synchronized-methods name,type[,name,type...]
- Define public synchronized method `name' returning `type'.
- -Z or --private-synchronized name,type[,name,type...]
- Define private synchronized method `name' returning `type'.
- -v or --variables name,type[,name,type...]
- Declare and generate accessor methods for the given instance
variables.
- -V or --own-variables name,type[,name,type...]
- Declare the given instance variables.
- -w or --static-variables name,type[,name,type...]
- Declare the given public static variables.
- -W or --private-static-variables name,type[,name,type...]
- Declare the given private static variables.
- -k or --int-constants name[,name...]
- Declare the given integer constants with values 0-n.
- -K or --string-constants name,text[,name,text...]
- Declare the String constant `name' with the value `text'.
- -c or --constructor-variables name,type[,name,type...]
- Pass the given instance variables to the constructor and generate
accessor methods for them. If `name' contains a colon, it is
assumed to be of the form `name:short[:long[:default]]' where `short'
and long are the short and long command line switches and `default'
is the default value. A main() method is then generated with
code to parse the options.
- -C or --own-constructor-variables name,type[,name,type...]
- The same as `-c' but without accessor methods.
- -t or --toolbar buttonlabel[,buttonlabel...]
- Construct a JPanel containing a button for each of the given
button labels, and generate a blank anonymous ActionListener.
- -b or --body interface,method-body[,interface,method-body...]
- Use `method-body' for methods implemented from `interface'.
A method body can also be supplied here for the class being
extended. `@@' can be used as a line break tag in this option
and the next one.
- -B or --default-body method-body
- Use `method-body' for methods implemented from interfaces
which have no method body defined with the -b option. This
does not apply to the class being extended.
- -p or --package package
- Put the new class into package `package'.
- -I or --imports package|class[,package|class...]
- Import the listed packages or classes.
- -R or --main
- Generate a main() method.