コード例 #1
0
 private JavaMethod createJavaMethod() {
   final Java6Method java6Method = new Java6Method();
   java6Method.setName("getPersonInfo");
   java6Method.setType("String");
   final Java6Parameter stringName = new Java6Parameter();
   stringName.setName("name");
   stringName.setType("String");
   java6Method.addParameter(stringName);
   final Java6Parameter intAge = new Java6Parameter();
   intAge.setName("age");
   intAge.setType("int");
   java6Method.addParameter(intAge);
   java6Method.setAccessType("private");
   return java6Method;
 }
コード例 #2
0
 private JavaParameter createJavaParameter() {
   final Java6Parameter stringName = new Java6Parameter();
   stringName.setName("name");
   stringName.setType("String");
   return stringName;
 }