Browse Source

I tried some stuff.

Cameron Weinfurt 11 months ago
parent
commit
e0faad2f92
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      java.m4

+ 3
- 5
java.m4 View File

@@ -1,9 +1,7 @@
1 1
 define(`CLASS_NAME',`public class $1 {
2 2
     CLASS_FIELDS(shift($@))
3 3
 }')
4
-
5 4
 define(`CLASS_FIELDS',`ifelse($1,,` ',`
6
-    public int $1;
7
-    CLASS_FIELDS(shift($@))')')
8
-
9
-CLASS_NAME(test,foo,bar,baz,tj)
5
+    private $1 $2;
6
+    CLASS_FIELDS(shift(shift($@)))')')
7
+CLASS_NAME(test,String,str,int,num)

Loading…
Cancel
Save