Browse Source

I made a simple template for a class. It needs to be made into m4/bash

master
Cameron Weinfurt 3 years ago
parent
commit
2fd3c2f826
  1. 27
      template_for_class.txt

27
template_for_class.txt

@ -0,0 +1,27 @@
// Square brackets are optional. Pipes mark mutually exclusive options.
// LT/GT represents an input field.
// Any text otherwise is what should be copied in.
// Triple dots represent that a certain pattern should be repeated exhaustively.
<public|protected|private> [abstract|final] [static] class <class name> {
[protected] [final] [static] <data type> <data member name>;
...
public <class name>(<data type> param0, ...){
<data member name> = param0;
...
}
...
public <data type> get<data member name>() { return <data_member_name>; }
...
public void set<data member name>(<data type> x){ <data member name> = x; }
...
<public|protected|private> [static] <data type> <method name>(<data type> param0, ...){
}
...
}
...
Loading…
Cancel
Save