Handling a lot of boiling plating using m4 and bash so we don't get carpal tunnel from writing tons of repetitive Java.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

java.m4 205B

1234567
  1. define(`CLASS_NAME',`public class $1 {
  2. CLASS_FIELDS(shift($@))
  3. }')
  4. define(`CLASS_FIELDS',`ifelse($1,,` ',`
  5. private $1 $2;
  6. CLASS_FIELDS(shift(shift($@)))')')
  7. CLASS_NAME(test,String,str,int,num)