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.

template_for_class.txt 747B

123456789101112131415161718192021222324252627
  1. // Square brackets are optional. Pipes mark mutually exclusive options.
  2. // LT/GT represents an input field.
  3. // Any text otherwise is what should be copied in.
  4. // Triple dots represent that a certain pattern should be repeated exhaustively.
  5. <public|protected|private> [abstract|final] [static] class <class name> {
  6. [protected] [final] [static] <data type> <data member name>;
  7. ...
  8. public <class name>(<data type> param0, ...){
  9. <data member name> = param0;
  10. ...
  11. }
  12. ...
  13. public <data type> get<data member name>() { return <data_member_name>; }
  14. ...
  15. public void set<data member name>(<data type> x){ <data member name> = x; }
  16. ...
  17. <public|protected|private> [static] <data type> <method name>(<data type> param0, ...){
  18. }
  19. ...
  20. }
  21. ...