File tree Expand file tree Collapse file tree 2 files changed +56
-2
lines changed Expand file tree Collapse file tree 2 files changed +56
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ public class Method implements Member {
9
9
private boolean isPublic = true ;
10
10
private String returnType ;
11
11
private ArrayList <Parameter > parameters ;
12
+ private boolean isDeprecated = false ;
13
+ private String deprecationMessage ;
12
14
13
15
public Method (String name ){
14
16
this .name = name ;
@@ -31,6 +33,15 @@ public boolean isStatic(){
31
33
return isStatic ;
32
34
}
33
35
36
+ public void setDeprecated (boolean isDeprecated , String message ){
37
+ this .isDeprecated = isDeprecated ;
38
+ this .deprecationMessage = message ;
39
+ }
40
+
41
+ public boolean isDeprecated (){
42
+ return isDeprecated ;
43
+ }
44
+
34
45
public void setReturnType (String returnType ){
35
46
this .returnType = returnType ;
36
47
}
Original file line number Diff line number Diff line change 3
3
4
4
public class Property implements Member {
5
5
private String name ;
6
-
6
+ private String description ;
7
+ private String type ;
8
+ private String defaultValue ;
9
+ private boolean isStatic = false ;
10
+
11
+ public Property (String name ){
12
+ this .name = name ;
13
+ }
14
+
7
15
public String getName (){
8
16
return name ;
9
17
}
10
-
18
+
19
+ public void setDescription (String description ){
20
+ this .description = description ;
21
+ }
22
+
23
+ public String getDescription (){
24
+ return description ;
25
+ }
26
+
27
+ public void setType (String type ){
28
+ this .type = type ;
29
+ }
30
+
31
+ public String getType (){
32
+ return type ;
33
+ }
34
+
35
+ public void setStatic (boolean isStatic ){
36
+ this .isStatic = isStatic ;
37
+ }
38
+
39
+ public boolean isStatic (){
40
+ return isStatic ;
41
+ }
42
+
43
+ public void setDefaultValue (String defaultValue ){
44
+ this .defaultValue = defaultValue ;
45
+ }
46
+
47
+ public String getDefaultValue (){
48
+ return defaultValue ;
49
+ }
50
+
11
51
public JSONObject toJson (){
12
52
JSONObject json = new JSONObject ();
13
53
json .set ("name" , name );
54
+ json .set ("type" , type );
55
+ json .set ("description" , description );
56
+ json .set ("defaultValue" , defaultValue );
14
57
return json ;
15
58
}
16
59
}
You can’t perform that action at this time.
0 commit comments